Package java.util.prefs

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


           
            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


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

            if ( getMBeanServer() != null )
            {
                try
                {
                    if ( nodeLite != null
                            && nodeLite.nodeExists( NODE_LITE_DATASOURCE ) )
                    {
                        Preferences nodeDataSources = nodeLite
                                .node( NODE_LITE_DATASOURCE );

                        processDataSourceNode( nodeDataSources );
View Full Code Here

    {
        Preferences prefs = Preferences.userRoot();

        final String test_node = "removeTest";

        assertFalse(prefs.nodeExists(test_node));

        Preferences removeNode = prefs.node(test_node);

        assertNotNull(removeNode);
View Full Code Here

                    public Properties run() {
                        Properties p = new Properties();
                        String notePath = "/com/sun/media/sound/softsynthesizer";
                        try {
                            Preferences prefroot = Preferences.userRoot();
                            if (prefroot.nodeExists(notePath)) {
                                Preferences prefs = prefroot.node(notePath);
                                String[] prefs_keys = prefs.keys();
                                for (String prefs_key : prefs_keys) {
                                    String val = prefs.get(prefs_key, null);
                                    if (val != null)
View Full Code Here

    {
        Preferences prefs = Preferences.userRoot();

        final String test_node = "removeTest";

        assertFalse(prefs.nodeExists(test_node));

        Preferences removeNode = prefs.node(test_node);

        assertNotNull(removeNode);
View Full Code Here

    private Preferences findNode( String code ) {
        try {
            Preferences root = Preferences.userRoot();
            Preferences node = root.node(CUSTOM_ID);

            if (node.nodeExists(code)) {
                return node.node(code);
            }

            for( String id : node.childrenNames() ) {
                Preferences child = node.node(id);
View Full Code Here

                    + (pathName == null ? "" : DICOM_DEVICES_ROOT + pathName);

        Preferences prefs = system
                ? Preferences.systemRoot()
                : Preferences.userRoot();
        if (!prefs.nodeExists(pathName)) {
            System.err.println(MessageFormat.format(
                    rb.getString("no-such-path"), pathName));
            System.exit(2);
        }
        prefs.node(pathName).exportSubtree(System.out);
View Full Code Here

                    public Properties run() {
                        Properties p = new Properties();
                        String notePath = "/com/sun/media/sound/softsynthesizer";
                        try {
                            Preferences prefroot = Preferences.userRoot();
                            if (prefroot.nodeExists(notePath)) {
                                Preferences prefs = prefroot.node(notePath);
                                String[] prefs_keys = prefs.keys();
                                for (String prefs_key : prefs_keys) {
                                    String val = prefs.get(prefs_key, null);
                                    if (val != 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.