AnnotationRef o = new AnnotationRef(); o.setID(annotationLinks_value.getID()); Dichroic_element.appendChild(o.asXMLElement(document));
/** * Updates AnnotationRef 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("ID") && getID() == null) { // TODO: Should be its own exception throw new RuntimeException(String.format( "AnnotationRef missing required ID property.")); } if (element.hasAttribute("ID")) { // ID property setID(String.valueOf( element.getAttribute("ID"))); // Adding this model object to the model handler model.addModelObject(getID(), this); } }
/** * Constructs AnnotationRef recursively from an XML DOM tree. * @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 AnnotationRef(Element element, OMEModel model) throws EnumerationException { update(element, model); }
public void setScreenAnnotationRef(String annotation, int screenIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once AnnotationRef annotationLinks_reference = new AnnotationRef(); annotationLinks_reference.setID(annotation); model.addReference( root.getScreen(screenIndex), annotationLinks_reference); }
public Element asXMLElement(Document document) { return asXMLElement(document, null); }
public void setInstrumentAnnotationRef(String annotation, int instrumentIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once AnnotationRef annotationLinks_reference = new AnnotationRef(); annotationLinks_reference.setID(annotation); model.addReference( root.getInstrument(instrumentIndex), annotationLinks_reference); }
public Element asXMLElement(Document document) { return asXMLElement(document, null); }
AnnotationRef o = new AnnotationRef(); o.setID(annotationLinks_value.getID()); Element child = document.createElementNS(NAMESPACE, "AnnotationRef"); o.asXMLElement(document, child); Dichroic_element.appendChild(child);
public void setProjectAnnotationRef(String annotation, int projectIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once AnnotationRef annotationLinks_reference = new AnnotationRef(); annotationLinks_reference.setID(annotation); model.addReference( root.getProject(projectIndex), annotationLinks_reference); }
/** * Constructs AnnotationRef recursively from an XML DOM tree. * @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 AnnotationRef(Element element, OMEModel model) throws EnumerationException { update(element, model); }
AnnotationRef o = new AnnotationRef(); o.setID(annotationLinks_value.getID()); Reagent_element.appendChild(o.asXMLElement(document));
public void setROIAnnotationRef(String annotation, int ROIIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once AnnotationRef annotationLinks_reference = new AnnotationRef(); annotationLinks_reference.setID(annotation); model.addReference( root.getROI(ROIIndex), annotationLinks_reference); }
AnnotationRef o = new AnnotationRef(); o.setID(annotationLinks_value.getID()); Element child = document.createElementNS(NAMESPACE, "AnnotationRef"); o.asXMLElement(document, child); Reagent_element.appendChild(child);
public void setExperimenterAnnotationRef(String annotation, int experimenterIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once AnnotationRef annotationLinks_reference = new AnnotationRef(); annotationLinks_reference.setID(annotation); model.addReference( root.getExperimenter(experimenterIndex), annotationLinks_reference); }
AnnotationRef o = new AnnotationRef(); o.setID(annotationLinks_value.getID()); Element child = document.createElementNS(NAMESPACE, "AnnotationRef"); o.asXMLElement(document, child); Experimenter_element.appendChild(child);
public void setInstrumentAnnotationRef(String annotation, int instrumentIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once AnnotationRef annotationLinks_reference = new AnnotationRef(); annotationLinks_reference.setID(annotation); model.addReference( root.getInstrument(instrumentIndex), annotationLinks_reference); }
AnnotationRef o = new AnnotationRef(); o.setID(annotationLinks_value.getID()); ROI_element.appendChild(o.asXMLElement(document));
public void setROIAnnotationRef(String annotation, int ROIIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once AnnotationRef annotationLinks_reference = new AnnotationRef(); annotationLinks_reference.setID(annotation); model.addReference( root.getROI(ROIIndex), annotationLinks_reference); }
AnnotationRef o = new AnnotationRef(); o.setID(annotationLinks_value.getID()); Experimenter_element.appendChild(o.asXMLElement(document));