setUUID(String.valueOf( element.getAttribute("UUID")));
/** * Updates BinaryOnly recursively from an XML DOM tree. <b>NOTE:</b> No * properties are removed, only added or updated. * @param element Root of the XML DOM tree to construct a model object * graph from. * @param model Handler for the OME model which keeps track of instances * and references seen during object population. * @throws EnumerationException If there is an error instantiating an * enumeration during model object creation. */ public void update(Element element, OMEModel model) throws EnumerationException { super.update(element, model); String tagName = element.getTagName(); if (element.hasAttribute("MetadataFile")) { // Attribute property MetadataFile setMetadataFile(String.valueOf( element.getAttribute("MetadataFile"))); } if (element.hasAttribute("UUID")) { // Attribute property UUID setUUID(String.valueOf( element.getAttribute("UUID"))); } }
public void setBinaryOnlyUUID(String uuid) { // Parents: {u'OME': None} // UUID is not a reference OME o0 = root; if (o0.getBinaryOnly() == null) { o0.setBinaryOnly(new BinaryOnly()); } BinaryOnly o1 = o0.getBinaryOnly(); o1.setUUID(uuid); }
public void setBinaryOnlyUUID(String uuid) { // Parents: {u'OME': None} // UUID is not a reference OME o0 = root; if (o0.getBinaryOnly() == null) { o0.setBinaryOnly(new BinaryOnly()); } BinaryOnly o1 = o0.getBinaryOnly(); o1.setUUID(uuid); }