Package ome.xml.model
Class Instrument
java.lang.Object
ome.xml.model.AbstractOMEModelObject
ome.xml.model.Instrument
- All Implemented Interfaces:
OMEModelObject
public class Instrument extends AbstractOMEModelObject
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAMESPACE
-
Constructor Summary
Constructors Constructor Description Instrument()
Default constructor.Instrument(Instrument orig)
Copy constructor.Instrument(org.w3c.dom.Element element, OMEModel model)
Constructs Instrument recursively from an XML DOM tree. -
Method Summary
Modifier and Type Method 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.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<Annotation>
copyLinkedAnnotationList()
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)
Annotation
getLinkedAnnotation(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
linkAnnotation(Annotation o)
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)
Annotation
setLinkedAnnotation(int index, Annotation o)
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
sizeOfLinkedAnnotationList()
int
sizeOfLinkedImageList()
int
sizeOfObjectiveList()
boolean
unlinkAnnotation(Annotation o)
boolean
unlinkImage(Image o)
void
update(org.w3c.dom.Element element, OMEModel model)
Updates Instrument recursively from an XML DOM tree.Methods inherited from class ome.xml.model.AbstractOMEModelObject
getChildrenByTagName, stripNamespacePrefix
-
Field Details
-
NAMESPACE
public static final java.lang.String NAMESPACE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Instrument
public Instrument()Default constructor. -
Instrument
Constructs Instrument recursively from an XML DOM tree.- Parameters:
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.- Throws:
EnumerationException
- If there is an error instantiating an enumeration during model object creation.
-
Instrument
Copy constructor.
-
-
Method Details
-
update
Updates Instrument recursively from an XML DOM tree. NOTE: No properties are removed, only added or updated.- Specified by:
update
in interfaceOMEModelObject
- Overrides:
update
in classAbstractOMEModelObject
- Parameters:
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.- Throws:
EnumerationException
- If there is an error instantiating an enumeration during model object creation.
-
link
Description copied from interface:OMEModelObject
Link a given OME model object to this model object.- Specified by:
link
in interfaceOMEModelObject
- Overrides:
link
in classAbstractOMEModelObject
- Parameters:
reference
- The type qualifier for the reference. This should be the corresponding reference type foro
. If, for example,o
is of typeImage
,reference
MUST be of typeImageRef
.o
- Model object to link to.- Returns:
true
if this model object was able to handle the reference,false
otherwise.
-
getID
public java.lang.String getID() -
setID
public void setID(java.lang.String id) -
getMicroscope
-
setMicroscope
-
sizeOfLightSourceList
public int sizeOfLightSourceList() -
copyLightSourceList
-
getLightSource
-
setLightSource
-
addLightSource
-
removeLightSource
-
sizeOfDetectorList
public int sizeOfDetectorList() -
copyDetectorList
-
getDetector
-
setDetector
-
addDetector
-
removeDetector
-
sizeOfObjectiveList
public int sizeOfObjectiveList() -
copyObjectiveList
-
getObjective
-
setObjective
-
addObjective
-
removeObjective
-
sizeOfFilterSetList
public int sizeOfFilterSetList() -
copyFilterSetList
-
getFilterSet
-
setFilterSet
-
addFilterSet
-
removeFilterSet
-
sizeOfFilterList
public int sizeOfFilterList() -
copyFilterList
-
getFilter
-
setFilter
-
addFilter
-
removeFilter
-
sizeOfDichroicList
public int sizeOfDichroicList() -
copyDichroicList
-
getDichroic
-
setDichroic
-
addDichroic
-
removeDichroic
-
sizeOfLinkedAnnotationList
public int sizeOfLinkedAnnotationList() -
copyLinkedAnnotationList
-
getLinkedAnnotation
-
setLinkedAnnotation
-
linkAnnotation
-
unlinkAnnotation
-
sizeOfLinkedImageList
public int sizeOfLinkedImageList() -
copyLinkedImageList
-
getLinkedImage
-
setLinkedImage
-
linkImage
-
unlinkImage
-
asXMLElement
public org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document)Description copied from interface:OMEModelObject
Takes the entire object hierarchy and produces an XML DOM tree.- Specified by:
asXMLElement
in interfaceOMEModelObject
- Specified by:
asXMLElement
in classAbstractOMEModelObject
- Parameters:
document
- Destination document for element creation, etc.- Returns:
- XML DOM tree root element for this model object.
-
asXMLElement
public org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document, org.w3c.dom.Element Instrument_element)Description copied from class:AbstractOMEModelObject
Takes the entire object hierarchy and produced an XML DOM tree taking into account class hierarchy.- Overrides:
asXMLElement
in classAbstractOMEModelObject
- Parameters:
document
- Destination document for element creation, etc.Instrument_element
- Element from the subclass. Ifnull
a new element will be created of this class.- Returns:
element
populated with properties from this class.
-