Examples of node()


Examples of java.util.UUID.node()

    {
        UUID_V1 u1 = factory1.generateV1() ;
        UUID u2 = UUID.fromString(u1.asString()) ;
        assertEquals(u1.getClockSequence(), u2.clockSequence()) ;
        assertEquals(u1.getTimestamp(), u2.timestamp()) ;
        assertEquals(u1.getNode(), u2.node()) ;
        assertEquals(u1.getVariant(), u2.variant()) ;
        assertEquals(u1.getVersion(), u2.version()) ;
        assertEquals(u1.getMostSignificantBits(), u2.getMostSignificantBits()) ;
        assertEquals(u1.getLeastSignificantBits(), u2.getLeastSignificantBits()) ;
    }
View Full Code Here

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

        try {
            if (!newPrefDir.exists() && Preferences.systemRoot().node("/com").nodeExists("adito")) {
                Preferences from = Preferences.systemRoot().node("/com/adito");
                log.warn("Migrating preferences");
                try {
                    copyNode(from.node("core"), PREF.node("core"));
                    from.node("core").removeNode();
                    copyNode(from.node("plugin"), PREF.node("plugin"));
                    from.node("plugin").removeNode();
                    copyNode(from.node("extensions"), PREF.node("extensions"));
                    from.node("extensions").removeNode();
View Full Code Here

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

            if (!newPrefDir.exists() && Preferences.systemRoot().node("/com").nodeExists("adito")) {
                Preferences from = Preferences.systemRoot().node("/com/adito");
                log.warn("Migrating preferences");
                try {
                    copyNode(from.node("core"), PREF.node("core"));
                    from.node("core").removeNode();
                    copyNode(from.node("plugin"), PREF.node("plugin"));
                    from.node("plugin").removeNode();
                    copyNode(from.node("extensions"), PREF.node("extensions"));
                    from.node("extensions").removeNode();
                    copyNode(from.node("dbupgrader"), PREF.node("dbupgrader"));
View Full Code Here

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

                Preferences from = Preferences.systemRoot().node("/com/adito");
                log.warn("Migrating preferences");
                try {
                    copyNode(from.node("core"), PREF.node("core"));
                    from.node("core").removeNode();
                    copyNode(from.node("plugin"), PREF.node("plugin"));
                    from.node("plugin").removeNode();
                    copyNode(from.node("extensions"), PREF.node("extensions"));
                    from.node("extensions").removeNode();
                    copyNode(from.node("dbupgrader"), PREF.node("dbupgrader"));
                    from.node("dbupgrader").removeNode();
View Full Code Here

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

                log.warn("Migrating preferences");
                try {
                    copyNode(from.node("core"), PREF.node("core"));
                    from.node("core").removeNode();
                    copyNode(from.node("plugin"), PREF.node("plugin"));
                    from.node("plugin").removeNode();
                    copyNode(from.node("extensions"), PREF.node("extensions"));
                    from.node("extensions").removeNode();
                    copyNode(from.node("dbupgrader"), PREF.node("dbupgrader"));
                    from.node("dbupgrader").removeNode();
                } catch (Exception e) {
View Full Code Here

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

                try {
                    copyNode(from.node("core"), PREF.node("core"));
                    from.node("core").removeNode();
                    copyNode(from.node("plugin"), PREF.node("plugin"));
                    from.node("plugin").removeNode();
                    copyNode(from.node("extensions"), PREF.node("extensions"));
                    from.node("extensions").removeNode();
                    copyNode(from.node("dbupgrader"), PREF.node("dbupgrader"));
                    from.node("dbupgrader").removeNode();
                } catch (Exception e) {
                    log.error("Failed to migrate preferences.", e);
View Full Code Here

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

                    copyNode(from.node("core"), PREF.node("core"));
                    from.node("core").removeNode();
                    copyNode(from.node("plugin"), PREF.node("plugin"));
                    from.node("plugin").removeNode();
                    copyNode(from.node("extensions"), PREF.node("extensions"));
                    from.node("extensions").removeNode();
                    copyNode(from.node("dbupgrader"), PREF.node("dbupgrader"));
                    from.node("dbupgrader").removeNode();
                } catch (Exception e) {
                    log.error("Failed to migrate preferences.", e);
                }
View Full Code Here

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

                    from.node("core").removeNode();
                    copyNode(from.node("plugin"), PREF.node("plugin"));
                    from.node("plugin").removeNode();
                    copyNode(from.node("extensions"), PREF.node("extensions"));
                    from.node("extensions").removeNode();
                    copyNode(from.node("dbupgrader"), PREF.node("dbupgrader"));
                    from.node("dbupgrader").removeNode();
                } catch (Exception e) {
                    log.error("Failed to migrate preferences.", e);
                }
                try {
View Full Code Here

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

                    copyNode(from.node("plugin"), PREF.node("plugin"));
                    from.node("plugin").removeNode();
                    copyNode(from.node("extensions"), PREF.node("extensions"));
                    from.node("extensions").removeNode();
                    copyNode(from.node("dbupgrader"), PREF.node("dbupgrader"));
                    from.node("dbupgrader").removeNode();
                } catch (Exception e) {
                    log.error("Failed to migrate preferences.", e);
                }
                try {
                    from.flush();
View Full Code Here

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

            Preferences p = ContextHolder.getContext().getPreferences().node("dbupgrader");
            if (p.nodeExists("currentDataVersion")) {
                log.warn("Migrating database versions from preferences to properties file in "
                                + ContextHolder.getContext().getDBDirectory().getAbsolutePath() + ".");
                versions = new Properties();
                p = p.node("currentDataVersion");
                String[] c = p.keys();
                for (int i = 0; i < c.length; i++) {
                    versions.put(c[i], p.get(c[i], ""));
                }
                FileOutputStream fos = new FileOutputStream(versionsFile);
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.