public class Instrument extends AbstractOMEModelObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE |
Constructor and Description |
---|
Instrument()
Default constructor.
|
Instrument(org.w3c.dom.Element element,
OMEModel model)
Constructs Instrument recursively from an XML DOM tree.
|
Instrument(Instrument orig)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDetector(Detector detector) |
void |
addDichroic(Dichroic dichroic) |
void |
addFilter(Filter filter) |
void |
addFilterSet(FilterSet filterSet) |
void |
addLightSource(LightSource lightSource) |
void |
addObjective(Objective objective) |
org.w3c.dom.Element |
asXMLElement(org.w3c.dom.Document document)
Takes the entire object hierarchy and produces an XML DOM tree.
|
protected org.w3c.dom.Element |
asXMLElement(org.w3c.dom.Document document,
org.w3c.dom.Element Instrument_element)
Takes the entire object hierarchy and produced an XML DOM tree taking
into account class hierarchy.
|
java.util.List<Detector> |
copyDetectorList() |
java.util.List<Dichroic> |
copyDichroicList() |
java.util.List<Filter> |
copyFilterList() |
java.util.List<FilterSet> |
copyFilterSetList() |
java.util.List<LightSource> |
copyLightSourceList() |
java.util.List<Image> |
copyLinkedImageList() |
java.util.List<Objective> |
copyObjectiveList() |
Detector |
getDetector(int index) |
Dichroic |
getDichroic(int index) |
Filter |
getFilter(int index) |
FilterSet |
getFilterSet(int index) |
java.lang.String |
getID() |
LightSource |
getLightSource(int index) |
Image |
getLinkedImage(int index) |
Microscope |
getMicroscope() |
Objective |
getObjective(int index) |
boolean |
link(Reference reference,
OMEModelObject o)
Link a given OME model object to this model object.
|
boolean |
linkImage(Image o) |
void |
removeDetector(Detector detector) |
void |
removeDichroic(Dichroic dichroic) |
void |
removeFilter(Filter filter) |
void |
removeFilterSet(FilterSet filterSet) |
void |
removeLightSource(LightSource lightSource) |
void |
removeObjective(Objective objective) |
Detector |
setDetector(int index,
Detector detector) |
Dichroic |
setDichroic(int index,
Dichroic dichroic) |
Filter |
setFilter(int index,
Filter filter) |
FilterSet |
setFilterSet(int index,
FilterSet filterSet) |
void |
setID(java.lang.String id) |
LightSource |
setLightSource(int index,
LightSource lightSource) |
Image |
setLinkedImage(int index,
Image o) |
void |
setMicroscope(Microscope microscope) |
Objective |
setObjective(int index,
Objective objective) |
int |
sizeOfDetectorList() |
int |
sizeOfDichroicList() |
int |
sizeOfFilterList() |
int |
sizeOfFilterSetList() |
int |
sizeOfLightSourceList() |
int |
sizeOfLinkedImageList() |
int |
sizeOfObjectiveList() |
boolean |
unlinkImage(Image o) |
void |
update(org.w3c.dom.Element element,
OMEModel model)
Updates Instrument recursively from an XML DOM tree.
|
getChildrenByTagName, stripNamespacePrefix
public static final java.lang.String NAMESPACE
public Instrument()
public Instrument(org.w3c.dom.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(org.w3c.dom.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 java.lang.String getID()
public void setID(java.lang.String id)
public Microscope getMicroscope()
public void setMicroscope(Microscope microscope)
public int sizeOfLightSourceList()
public java.util.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 java.util.List<Detector> copyDetectorList()
public Detector getDetector(int index)
public void addDetector(Detector detector)
public void removeDetector(Detector detector)
public int sizeOfObjectiveList()
public java.util.List<Objective> copyObjectiveList()
public Objective getObjective(int index)
public void addObjective(Objective objective)
public void removeObjective(Objective objective)
public int sizeOfFilterSetList()
public java.util.List<FilterSet> copyFilterSetList()
public FilterSet getFilterSet(int index)
public void addFilterSet(FilterSet filterSet)
public void removeFilterSet(FilterSet filterSet)
public int sizeOfFilterList()
public java.util.List<Filter> copyFilterList()
public Filter getFilter(int index)
public void addFilter(Filter filter)
public void removeFilter(Filter filter)
public int sizeOfDichroicList()
public java.util.List<Dichroic> copyDichroicList()
public Dichroic getDichroic(int index)
public void addDichroic(Dichroic dichroic)
public void removeDichroic(Dichroic dichroic)
public int sizeOfLinkedImageList()
public java.util.List<Image> copyLinkedImageList()
public Image getLinkedImage(int index)
public boolean linkImage(Image o)
public boolean unlinkImage(Image o)
public org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document)
OMEModelObject
asXMLElement
in interface OMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.protected org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document, org.w3c.dom.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