Package org.dcm4che3.conf.api

Examples of org.dcm4che3.conf.api.ConfigurationException


                Preferences node = prefs.node(pathName);
                node.removeNode();
                node.flush();
            }
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here


            return false;
        try {
            rootPrefs.node(pathName).flush();
            return true;
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

        try {
            return rootPrefs.node(HL7_UNIQUE_APPLICATION_NAMES_REGISTRY_ROOT)
                    .childrenNames();
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

        ConfigClass ccAnno = (ConfigClass) confClass.getAnnotation(ConfigClass.class);

        // no annotation - no configuration
        if (ccAnno == null)
            throw new ConfigurationException("The configuration class must be annotated with @ConfigClass");

        // get common name
        if (ccAnno.commonName().equals("") || ccAnno.objectClass().equals(""))
            throw new ConfigurationException("To use LDAP config, specify common name and objectClass for the config class in @ConfigClass annotation");

        commonName = ccAnno.commonName();
    }
View Full Code Here

        try {

            reflectiveConfig.storeConfig(confObj, ldapWriter);

        } catch (Exception e) {
            throw new ConfigurationException("Unable to store configuration for class " + confClass.getSimpleName()+
                    " for device DN: " + deviceDN, e);
        }

    }
View Full Code Here

            reflectiveConfig.readConfig(confObj, ldapReader);

            device.addDeviceExtension(confObj);

        } catch (Exception e) {
            throw new ConfigurationException("Unable to read configuration for class " + confClass.getSimpleName()+
                    " for device: " + device.getDeviceName() , e);
        }

    }
View Full Code Here

        try {

            reflectiveConfig.storeConfigDiffs(prevConfObj, confObj, ldapDiffWriter);

        } catch (ConfigurationException e) {
            throw new ConfigurationException("Unable to merge configuration for class " + confClass.getSimpleName()+
                    " for device: " + device.getDeviceName(), e);
        }
    }
View Full Code Here

        String codeMeaning = codes.getProperty(codeValue);
        if (codeMeaning == null)
            throw new IllegalArgumentException("undefined code value: "
                        + codeValue);
        int endDesignator = codeValue.indexOf('-');
        Attributes attrs = new Attributes(3);
        attrs.setString(Tag.CodeValue, VR.SH,
                endDesignator >= 0
                    ? codeValue.substring(endDesignator + 1)
                    : codeValue);
        attrs.setString(Tag.CodingSchemeDesignator, VR.SH,
                endDesignator >= 0
                    ? codeValue.substring(0, endDesignator)
                    : "DCM");
        attrs.setString(Tag.CodeMeaning, VR.LO, codeMeaning);
        return attrs;
    }
View Full Code Here

        bulkDataFiles = dis.getBulkDataFiles();
    }

    public void mergeJSON(String fname) throws Exception {
        if (dataset == null)
            dataset = new Attributes();
        JSONReader reader = parseJSON(fname, dataset);
        Attributes fmi2 = reader.getFileMetaInformation();
        if (fmi2 != null)
            fmi = fmi2;
    }
View Full Code Here

            dos.close();
        }
    }

    private Sequence refSOPSeq(String studyIUID, String seriesIUID) {
        Attributes refStudy = getOrAddItem(evidenceSeq, Tag.StudyInstanceUID, studyIUID);
        Sequence refSeriesSeq = refStudy.ensureSequence(Tag.ReferencedSeriesSequence, 10);
        Attributes refSeries = getOrAddItem(refSeriesSeq,Tag.SeriesInstanceUID, seriesIUID);
        return refSeries.ensureSequence(Tag.ReferencedSOPSequence, 100);
    }
View Full Code Here

TOP

Related Classes of org.dcm4che3.conf.api.ConfigurationException

Copyright © 2018 www.massapicom. 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.