setID(String.valueOf( element.getAttribute("ID")));
/** * Updates DichroicRef 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( "DichroicRef 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); } }
public void setFilterSetDichroicRef(String dichroic, int instrumentIndex, int filterSetIndex) { // Parents: {u'Instrument': {u'OME': None}} // DichroicRef is reference and occurs more than once DichroicRef dichroic_reference = new DichroicRef(); dichroic_reference.setID(dichroic); model.addReference( root.getInstrument(instrumentIndex).getFilterSet(filterSetIndex), dichroic_reference); }
public void setFilterSetDichroicRef(String dichroic, int instrumentIndex, int filterSetIndex) { // Parents: {u'Instrument': {u'OME': None}} // DichroicRef is reference and occurs more than once DichroicRef dichroic_reference = new DichroicRef(); dichroic_reference.setID(dichroic); model.addReference( root.getInstrument(instrumentIndex).getFilterSet(filterSetIndex), dichroic_reference); }
public void setLightPathDichroicRef(String dichroic, int imageIndex, int channelIndex) { // Parents: {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}} // DichroicRef is reference and occurs more than once DichroicRef dichroic_reference = new DichroicRef(); dichroic_reference.setID(dichroic); model.addReference( root.getImage(imageIndex).getPixels().getChannel(channelIndex).getLightPath(), dichroic_reference); }
public void setLightPathDichroicRef(String dichroic, int imageIndex, int channelIndex) { // Parents: {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}} // DichroicRef is reference and occurs more than once DichroicRef dichroic_reference = new DichroicRef(); dichroic_reference.setID(dichroic); model.addReference( root.getImage(imageIndex).getPixels().getChannel(channelIndex).getLightPath(), dichroic_reference); }
o.setID(dichroic.getID()); Element child = document.createElementNS(NAMESPACE, "DichroicRef");
dichroic_reference.setID(DichroicRef_element.getAttribute("ID")); model.addReference(this, dichroic_reference);
dichroic_reference.setID(DichroicRef_element.getAttribute("ID")); model.addReference(this, dichroic_reference);
o.setID(dichroic.getID()); Element child = document.createElementNS(NAMESPACE, "DichroicRef");
o.setID(dichroic.getID()); FilterSet_element.appendChild(o.asXMLElement(document));
dichroic_reference.setID(DichroicRef_element.getAttribute("ID")); model.addReference(this, dichroic_reference);
o.setID(dichroic.getID()); LightPath_element.appendChild(o.asXMLElement(document));
dichroic_reference.setID(DichroicRef_element.getAttribute("ID")); model.addReference(this, dichroic_reference);