public ProjectMeta(XmlElement oe) { super(oe); if (oe.element("meta/metadata") != null) { _editable = true; } }
public int dimZ() { try { int dim3 = _de.intValue("dim_3", 0); return dim3; } catch (Throwable e) { ThrowableUtil.rethrowAsUnchecked(e); return 0; } }
@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; }
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"); }