Examples of childrenNames()


Examples of java.util.prefs.Preferences.childrenNames()

    Map<String,PreferenceCategoryModel> categories = new HashMap<String,PreferenceCategoryModel>();


    // update preference values with values from file
    try {
      String[] children = prefs.childrenNames();
      for (int i = 0; i < children.length; i++) {
        processPref (em, prefs.node (children [i]), null, categories);
      }
    }
    catch (BackingStoreException exc) {
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

      prefs.put("prefskey2", "oldvalue2");
      in = PreferencesTest.class.getResourceAsStream("/prefs/java/util/prefs/userprefs.xml");
      Preferences.importPreferences(in);

      prefs = Preferences.userNodeForPackage(PreferencesTest.class);
      assertEquals(1, prefs.childrenNames().length);
      assertTrue(prefs.nodeExists("mock/child/grandson"));
      assertEquals("newvalue", prefs.get("prefskey", null));
      assertEquals("oldvalue2", prefs.get("prefskey2", null));
      assertEquals("newvalue3", prefs.get("prefskey3", null));
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

  public void testAbstractMethods() {
    Preferences p = new MockPreferences();
    p.absolutePath();
    try {
      p.childrenNames();
    } catch (BackingStoreException e4) {
    }
    try {
      p.clear();
    } catch (BackingStoreException e5) {
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

            for (String entry : allAgents) {
                this.logger.fine("Found agent " + entry);
               
                final Preferences currentNode = this.agentsRoot.node(entry + "/exports");
                final String[] allExports = currentNode.childrenNames();

                for (String string : allExports) {
                    this.logger.finer("Found export node " + string);
                   
                    final Preferences exportNode = currentNode.node(string);
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

        // entity.getId());
        return jsEntity;
      }

      Preferences prefNode = Preferences.userRoot().node(rootForEntity);
      String[] children = prefNode.childrenNames();
      if ((children != null) && (children.length > 0))
      {
        JSEntityPreferences permissions = new JSEntityPreferences();

        for (int i = 0; i < children.length; i++)
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

        // entity.getId());
        return jsEntity;
      }

      Preferences prefNode = Preferences.userRoot().node(rootForEntity);
      String[] children = prefNode.childrenNames();
      if ((children != null) && (children.length > 0))
      {
        JSEntityPreferences permissions = new JSEntityPreferences();

        for (int i = 0; i < children.length; i++)
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

      {
        return jsEntity;
      }

      Preferences prefNode = Preferences.userRoot().node(rootForEntity);
      String[] children = prefNode.childrenNames();
      if ((children != null) && (children.length > 0))
      {
        JSEntityPreferences permissions = new JSEntityPreferences();

        for (int i = 0; i < children.length; i++)
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

    {
        Preferences prefs = Preferences.userRoot();
        // Test without children.
        try
        {
            String[] childrenNames = prefs.childrenNames();
            if (childrenNames.length > 0)
            {
                assertTrue("expected no children, " + childrenNames.length + ", " + childrenNames[0],
                        childrenNames.length == 0);
            }
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

        removeNode.removeNode();
        assertFalse(prefs.nodeExists(test_node));

        try
        {
            removeNode.childrenNames();
            assertFalse("An IllegalStateException should have been thrown by the AbtractPreferences class", true);
        }
        catch (IllegalStateException e)
        {
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

        // entity.getId());
        return jsEntity;
      }

      Preferences prefNode = Preferences.userRoot().node(rootForEntity);
      String[] children = prefNode.childrenNames();
      if ((children != null) && (children.length > 0))
      {
        JSEntityPreferences permissions = new JSEntityPreferences();

        for (int i = 0; i < children.length; i++)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.