public class Instrument extends AbstractOMEModelObject
Constructor and Description |
---|
Instrument()
Default constructor.
|
Instrument(Element element,
OMEModel model)
Constructs Instrument recursively from an XML DOM tree.
|
Instrument(Instrument orig)
Copy constructor.
|
getChildrenByTagName, stripNamespacePrefix
public static final String NAMESPACE
public Instrument()
public Instrument(Element element, OMEModel model) throws EnumerationException
element
- Root of the XML DOM tree to construct a model object
graph from.model
- Handler for the OME model which keeps track of instances
and references seen during object population.EnumerationException
- If there is an error instantiating an
enumeration during model object creation.public Instrument(Instrument orig)
public void update(Element element, OMEModel model) throws EnumerationException
update
in interface OMEModelObject
update
in class AbstractOMEModelObject
element
- Root of the XML DOM tree to construct a model object
graph from.model
- Handler for the OME model which keeps track of instances
and references seen during object population.EnumerationException
- If there is an error instantiating an
enumeration during model object creation.public boolean link(Reference reference, OMEModelObject o)
OMEModelObject
link
in interface OMEModelObject
link
in class AbstractOMEModelObject
reference
- The type qualifier for the reference. This should
be the corresponding reference type for o
. If, for example,
o
is of type Image
, reference
MUST be of type ImageRef
.o
- Model object to link to.true
if this model object was able to handle the
reference, false
otherwise.public String getID()
public void setID(String id)
public Microscope getMicroscope()
public void setMicroscope(Microscope microscope)
public int sizeOfLightSourceList()
public List<LightSource> copyLightSourceList()
public LightSource getLightSource(int index)
public LightSource setLightSource(int index, LightSource lightSource)
public void addLightSource(LightSource lightSource)
public void removeLightSource(LightSource lightSource)
public int sizeOfDetectorList()
public Detector getDetector(int index)
public void addDetector(Detector detector)
public void removeDetector(Detector detector)
public int sizeOfObjectiveList()
public Objective getObjective(int index)
public void addObjective(Objective objective)
public void removeObjective(Objective objective)
public int sizeOfFilterSetList()
public FilterSet getFilterSet(int index)
public void addFilterSet(FilterSet filterSet)
public void removeFilterSet(FilterSet filterSet)
public int sizeOfFilterList()
public Filter getFilter(int index)
public void addFilter(Filter filter)
public void removeFilter(Filter filter)
public int sizeOfDichroicList()
public Dichroic getDichroic(int index)
public void addDichroic(Dichroic dichroic)
public void removeDichroic(Dichroic dichroic)
public int sizeOfLinkedImageList()
public Image getLinkedImage(int index)
public boolean linkImage(Image o)
public boolean unlinkImage(Image o)
public Element asXMLElement(Document document)
OMEModelObject
asXMLElement
in interface OMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.protected Element asXMLElement(Document document, Element Instrument_element)
AbstractOMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.Instrument_element
- Element from the subclass. If null a new
element will be created of this class.element
populated with properties from this class.Copyright © 2014 Open Microscopy Environment