protected void parse(XmlElement oe) { super.parse(oe); List<XmlElement> ies = oe.elements("derivation/input"); if (ies != null) { for (int i = 0; i < ies.size(); i++) { XmlElement ie = ies.get(i); Input input = new Input(ie.value(), ie.value("@vid")); addInput(input); } } else { _inputs = null; } _methodId = oe.value("derivation/method"); _methodStep = oe.value("derivation/method/@step"); }
@Override protected Map<String, DicomElement> instantiate(XmlElement xe) throws Throwable { if (xe != null) { List<XmlElement> des = xe.elements("de"); if (des != null) { if (!des.isEmpty()) { Map<String, DicomElement> es = new TreeMap<String, DicomElement>(); for (XmlElement de : des) { DicomElement e = new DicomElement(de); es.put(e.tag(), e); } return es; } } } return null; }