Package java.util.prefs

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


            loadFrom(conn, connsNode.node("" + connIndex));
            device.addConnection(conn);
        }
        List<Connection> devConns = device.listConnections();
        Preferences aesNode = deviceNode.node("dcmNetworkAE");
        for (String aet : aesNode.childrenNames()) {
            Preferences aeNode = aesNode.node(aet);
            ApplicationEntity ae = newApplicationEntity(aeNode);
            loadFrom(ae, aeNode);
            int n = aeNode.getInt("dicomNetworkConnectionReference.#", 0);
            for (int i = 0; i < n; i++) {
View Full Code Here


    }

    private void loadTransferCapabilities(ApplicationEntity ae,
            Preferences tcsNode, Role role) throws BackingStoreException {
        Preferences roleNode = tcsNode.node(role.name());
        for (String cuid : roleNode.childrenNames())
            ae.addTransferCapability(
                    loadTransferCapability(roleNode.node(cuid), cuid, role));
    }

    public void load(AttributeCoercions acs, Preferences aeNode)
View Full Code Here

    }

    public void load(AttributeCoercions acs, Preferences aeNode)
            throws BackingStoreException {
        Preferences acsNode = aeNode.node("dcmAttributeCoercion");
        for (String cn : acsNode.childrenNames()) {
            Preferences acNode = acsNode.node(cn);
            acs.add(new AttributeCoercion(
                    cn,
                    PreferencesUtils.stringArray(acNode, "dcmSOPClass"),
                    Dimse.valueOf(acNode.get("dcmDIMSE", null)),
View Full Code Here

    }

    private void loadAuditSuppressCriteria(AuditLogger logger, Preferences loggerNode)
            throws BackingStoreException {
        Preferences parentNode = loggerNode.node("dcmAuditSuppressCriteria");
        for (String cn : parentNode.childrenNames()) {
            AuditSuppressCriteria criteria = new  AuditSuppressCriteria(cn);
            loadAuditSuppressCriteria(criteria, parentNode.node(cn));
            logger.addAuditSuppressCriteria(criteria);
        }
    }
View Full Code Here

         if (!PreferencesUtils.nodeExists(rootPrefs, DICOM_DEVICES_ROOT))
            throw new ConfigurationNotFoundException();
       
        try {
            Preferences devicePrefs = rootPrefs.node(DICOM_DEVICES_ROOT);
            for (String deviceName : devicePrefs.childrenNames()) {
                Preferences deviceNode = devicePrefs.node(deviceName);
                for (String aet2 : deviceNode.node(nodeName).childrenNames())
                    if (aet.equals(aet2))
                        return loadDevice(deviceNode);
            }
View Full Code Here

            return new DeviceInfo[0];

        ArrayList<DeviceInfo> results = new ArrayList<DeviceInfo>();
        try {
            Preferences devicePrefs = rootPrefs.node(DICOM_DEVICES_ROOT);
            for (String deviceName : devicePrefs.childrenNames()) {
                Preferences deviceNode = devicePrefs.node(deviceName);
                DeviceInfo deviceInfo = new DeviceInfo();
                deviceInfo.setDeviceName(deviceName);
                loadFrom(deviceInfo, deviceNode);
                if (match(deviceInfo, keys))
View Full Code Here

    }

     public static void load(CompressionRules rules, Preferences parentNode)
            throws BackingStoreException {
        Preferences rulesNode = parentNode.node("dcmCompressionRule");
        for (String ruleIndex : rulesNode.childrenNames()) {
            rules.add(compressionRule(rulesNode.node(ruleIndex)));
        }
    }

    private static CompressionRule compressionRule(Preferences prefs) {
View Full Code Here

        if (!deviceNode.nodeExists("dcmImageReaderFactory"))
            return;
       
        Preferences prefs = deviceNode.node("dcmImageReaderFactory");
        ImageReaderFactory factory = new ImageReaderFactory();
        for (String tsuid : prefs.childrenNames())
            factory.put(tsuid, load(prefs.node(tsuid)));
       
        device.addDeviceExtension(new ImageReaderExtension(factory));       
    }
View Full Code Here

        if (!deviceNode.nodeExists("dcmImageWriterFactory"))
            return;
       
        Preferences prefs = deviceNode.node("dcmImageWriterFactory");
        ImageWriterFactory factory = new ImageWriterFactory();
        for (String tsuid : prefs.childrenNames())
            factory.put(tsuid, load(prefs.node(tsuid)));

        device.addDeviceExtension(new ImageWriterExtension(factory));

    }
View Full Code Here

        HL7DeviceExtension hl7Ext = new HL7DeviceExtension();
        device.addDeviceExtension(hl7Ext);
        List<Connection> devConns = device.listConnections();
        Preferences appsNode = deviceNode.node("hl7Application");
        for (String appName : appsNode.childrenNames()) {
            Preferences appNode = appsNode.node(appName);
            HL7Application hl7app = newHL7Application(appNode);
            loadFrom(hl7app, appNode);
            int n = appNode.getInt("dicomNetworkConnectionReference.#", 0);
            for (int i = 0; i < n; 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.