Package java.util.prefs

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


        } catch (BackingStoreException e) {
        }
        p.name();
        p.node(null);
        try {
            p.nodeExists(null);
        } catch (BackingStoreException e1) {
        }
        p.parent();
        p.put(null, null);
        p.putBoolean(null, false);
View Full Code Here


        assertTrue(pref.nodeExists("child"));
        assertTrue(pref.nodeExists("child/grandchild"));
        grandchild.removeNode();
        assertTrue(pref.nodeExists("child"));
        assertFalse(pref.nodeExists("child/grandchild"));
        assertFalse(grandchild.nodeExists(""));

        assertFalse(pref.nodeExists("child2/grandchild"));
        pref.node("child2/grandchild");
        assertTrue(pref.nodeExists("child2/grandchild"));
    }
View Full Code Here

        pref.removeNode();

        assertFalse(child.nodeExists(""));
        assertFalse(child1.nodeExists(""));
        assertFalse(grandchild.nodeExists(""));
        assertFalse(pref.nodeExists(""));
    }

    // public void testAddNodeChangeListener() throws BackingStoreException {
    // try {
View Full Code Here

       
        Preferences icEjbNode = getInitialContextEjbNode();
       
        try
        {
            if ( icEjbNode.nodeExists( clazz.getName() ))
            {
                String[] childrenNames = icEjbNode.childrenNames();
               
                for ( int i = 0; i < childrenNames.length; i++ )
                {
View Full Code Here

    Map icConfig = null;

    Preferences icEjbNode = getInitialContextEjbNode();

    try {
      if ( icEjbNode.nodeExists( clazz.getName() ) ) {
        String[] childrenNames = icEjbNode.childrenNames();

        for ( int i = 0; i < childrenNames.length; i++ ) {
          Preferences node = icEjbNode.node( childrenNames[i] );
View Full Code Here

           
            String tempClassName = null;
           
            try
            {
                if ( systemRoot != null && systemRoot.nodeExists( "jivalo/config/callcontext/factory" ) )
                {
                    Preferences node = systemRoot.node( "jivalo/config/callcontext/factory" );
                    tempClassName = node.get( "webClientClass", null);
                }
            }
View Full Code Here

           
            String tempClassName = null;
           
            try
            {
                if ( systemRoot != null && systemRoot.nodeExists( "jivalo/config/callcontext/factory" ) )
                {
                    Preferences node = systemRoot.node( "jivalo/config/callcontext/factory" );
                    tempClassName = node.get( "applClientClass", null);
                }
            }
View Full Code Here

            {
                Preferences platformNode = null;
               
                platformNode = systemRoot.node( NODE_NAME_PLATFORM );
               
                if ( platformNode.nodeExists( NODE_NAME_HANDLERS ) )
                {
                    handlersNode = platformNode.node( NODE_NAME_HANDLERS );
                }

                if ( platformNode.nodeExists( NODE_NAME_LOGGERS ) )
View Full Code Here

                if ( platformNode.nodeExists( NODE_NAME_HANDLERS ) )
                {
                    handlersNode = platformNode.node( NODE_NAME_HANDLERS );
                }

                if ( platformNode.nodeExists( NODE_NAME_LOGGERS ) )
                {
                    loggersNode = platformNode.node( NODE_NAME_LOGGERS );
                }
            }
        }
View Full Code Here

           
            String tempClassName = null;
           
            try
            {
                if ( systemRoot != null && systemRoot.nodeExists( "jivalo/config/callcontext/factory" ) )
                {
                    Preferences node = systemRoot.node( "jivalo/config/callcontext/factory" );
                    tempClassName = node.get( "webClientClass", null);
                }
            }
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.