Package ome.xml.model
Class Annotation
- java.lang.Object
-
- ome.xml.model.AbstractOMEModelObject
-
- ome.xml.model.Annotation
-
- All Implemented Interfaces:
OMEModelObject
- Direct Known Subclasses:
BasicAnnotation,ListAnnotation,MapAnnotation,TextAnnotation,TypeAnnotation
public abstract class Annotation extends AbstractOMEModelObject
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMESPACE
-
Constructor Summary
Constructors Constructor Description Annotation()Default constructor.Annotation(Annotation orig)Copy constructor.Annotation(org.w3c.dom.Element element, OMEModel model)Constructs Annotation recursively from an XML DOM tree.
-
Method Summary
-
Methods inherited from class ome.xml.model.AbstractOMEModelObject
getChildrenByTagName, stripNamespacePrefix
-
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Annotation
public Annotation()
Default constructor.
-
Annotation
public Annotation(org.w3c.dom.Element element, OMEModel model) throws EnumerationExceptionConstructs Annotation 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.
-
Annotation
public Annotation(Annotation orig)
Copy constructor.
-
-
Method Detail
-
update
public void update(org.w3c.dom.Element element, OMEModel model) throws EnumerationExceptionUpdates Annotation recursively from an XML DOM tree. NOTE: No properties are removed, only added or updated.- Specified by:
updatein interfaceOMEModelObject- Overrides:
updatein 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
public boolean link(Reference reference, OMEModelObject o)
Description copied from interface:OMEModelObjectLink a given OME model object to this model object.- Specified by:
linkin interfaceOMEModelObject- Overrides:
linkin classAbstractOMEModelObject- Parameters:
reference- The type qualifier for the reference. This should be the corresponding reference type foro. If, for example,ois of typeImage,referenceMUST be of typeImageRef.o- Model object to link to.- Returns:
trueif this model object was able to handle the reference,falseotherwise.
-
getID
public java.lang.String getID()
-
setID
public void setID(java.lang.String id)
-
getNamespace
public java.lang.String getNamespace()
-
setNamespace
public void setNamespace(java.lang.String namespace)
-
getAnnotator
public java.lang.String getAnnotator()
-
setAnnotator
public void setAnnotator(java.lang.String annotator)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
sizeOfLinkedAnnotationList
public int sizeOfLinkedAnnotationList()
-
copyLinkedAnnotationList
public java.util.List<Annotation> copyLinkedAnnotationList()
-
getLinkedAnnotation
public Annotation getLinkedAnnotation(int index)
-
setLinkedAnnotation
public Annotation setLinkedAnnotation(int index, Annotation o)
-
linkAnnotation
public boolean linkAnnotation(Annotation o)
-
unlinkAnnotation
public boolean unlinkAnnotation(Annotation o)
-
sizeOfLinkedImageList
public int sizeOfLinkedImageList()
-
copyLinkedImageList
public java.util.List<Image> copyLinkedImageList()
-
getLinkedImage
public Image getLinkedImage(int index)
-
linkImage
public boolean linkImage(Image o)
-
unlinkImage
public boolean unlinkImage(Image o)
-
sizeOfLinkedPlaneList
public int sizeOfLinkedPlaneList()
-
copyLinkedPlaneList
public java.util.List<Plane> copyLinkedPlaneList()
-
getLinkedPlane
public Plane getLinkedPlane(int index)
-
linkPlane
public boolean linkPlane(Plane o)
-
unlinkPlane
public boolean unlinkPlane(Plane o)
-
sizeOfLinkedChannelList
public int sizeOfLinkedChannelList()
-
copyLinkedChannelList
public java.util.List<Channel> copyLinkedChannelList()
-
getLinkedChannel
public Channel getLinkedChannel(int index)
-
linkChannel
public boolean linkChannel(Channel o)
-
unlinkChannel
public boolean unlinkChannel(Channel o)
-
sizeOfLinkedInstrumentList
public int sizeOfLinkedInstrumentList()
-
copyLinkedInstrumentList
public java.util.List<Instrument> copyLinkedInstrumentList()
-
getLinkedInstrument
public Instrument getLinkedInstrument(int index)
-
setLinkedInstrument
public Instrument setLinkedInstrument(int index, Instrument o)
-
linkInstrument
public boolean linkInstrument(Instrument o)
-
unlinkInstrument
public boolean unlinkInstrument(Instrument o)
-
sizeOfLinkedLightSourceList
public int sizeOfLinkedLightSourceList()
-
copyLinkedLightSourceList
public java.util.List<LightSource> copyLinkedLightSourceList()
-
getLinkedLightSource
public LightSource getLinkedLightSource(int index)
-
setLinkedLightSource
public LightSource setLinkedLightSource(int index, LightSource o)
-
linkLightSource
public boolean linkLightSource(LightSource o)
-
unlinkLightSource
public boolean unlinkLightSource(LightSource o)
-
sizeOfLinkedProjectList
public int sizeOfLinkedProjectList()
-
copyLinkedProjectList
public java.util.List<Project> copyLinkedProjectList()
-
getLinkedProject
public Project getLinkedProject(int index)
-
linkProject
public boolean linkProject(Project o)
-
unlinkProject
public boolean unlinkProject(Project o)
-
sizeOfLinkedExperimenterGroupList
public int sizeOfLinkedExperimenterGroupList()
-
copyLinkedExperimenterGroupList
public java.util.List<ExperimenterGroup> copyLinkedExperimenterGroupList()
-
getLinkedExperimenterGroup
public ExperimenterGroup getLinkedExperimenterGroup(int index)
-
setLinkedExperimenterGroup
public ExperimenterGroup setLinkedExperimenterGroup(int index, ExperimenterGroup o)
-
linkExperimenterGroup
public boolean linkExperimenterGroup(ExperimenterGroup o)
-
unlinkExperimenterGroup
public boolean unlinkExperimenterGroup(ExperimenterGroup o)
-
sizeOfLinkedDatasetList
public int sizeOfLinkedDatasetList()
-
copyLinkedDatasetList
public java.util.List<Dataset> copyLinkedDatasetList()
-
getLinkedDataset
public Dataset getLinkedDataset(int index)
-
linkDataset
public boolean linkDataset(Dataset o)
-
unlinkDataset
public boolean unlinkDataset(Dataset o)
-
sizeOfLinkedExperimenterList
public int sizeOfLinkedExperimenterList()
-
copyLinkedExperimenterList
public java.util.List<Experimenter> copyLinkedExperimenterList()
-
getLinkedExperimenter
public Experimenter getLinkedExperimenter(int index)
-
setLinkedExperimenter
public Experimenter setLinkedExperimenter(int index, Experimenter o)
-
linkExperimenter
public boolean linkExperimenter(Experimenter o)
-
unlinkExperimenter
public boolean unlinkExperimenter(Experimenter o)
-
sizeOfLinkedFolderList
public int sizeOfLinkedFolderList()
-
copyLinkedFolderList
public java.util.List<Folder> copyLinkedFolderList()
-
getLinkedFolder
public Folder getLinkedFolder(int index)
-
linkFolder
public boolean linkFolder(Folder o)
-
unlinkFolder
public boolean unlinkFolder(Folder o)
-
sizeOfLinkedObjectiveList
public int sizeOfLinkedObjectiveList()
-
copyLinkedObjectiveList
public java.util.List<Objective> copyLinkedObjectiveList()
-
getLinkedObjective
public Objective getLinkedObjective(int index)
-
linkObjective
public boolean linkObjective(Objective o)
-
unlinkObjective
public boolean unlinkObjective(Objective o)
-
sizeOfLinkedDetectorList
public int sizeOfLinkedDetectorList()
-
copyLinkedDetectorList
public java.util.List<Detector> copyLinkedDetectorList()
-
getLinkedDetector
public Detector getLinkedDetector(int index)
-
linkDetector
public boolean linkDetector(Detector o)
-
unlinkDetector
public boolean unlinkDetector(Detector o)
-
sizeOfLinkedFilterList
public int sizeOfLinkedFilterList()
-
copyLinkedFilterList
public java.util.List<Filter> copyLinkedFilterList()
-
getLinkedFilter
public Filter getLinkedFilter(int index)
-
linkFilter
public boolean linkFilter(Filter o)
-
unlinkFilter
public boolean unlinkFilter(Filter o)
-
sizeOfLinkedDichroicList
public int sizeOfLinkedDichroicList()
-
copyLinkedDichroicList
public java.util.List<Dichroic> copyLinkedDichroicList()
-
getLinkedDichroic
public Dichroic getLinkedDichroic(int index)
-
linkDichroic
public boolean linkDichroic(Dichroic o)
-
unlinkDichroic
public boolean unlinkDichroic(Dichroic o)
-
sizeOfLinkedLightPathList
public int sizeOfLinkedLightPathList()
-
copyLinkedLightPathList
public java.util.List<LightPath> copyLinkedLightPathList()
-
getLinkedLightPath
public LightPath getLinkedLightPath(int index)
-
linkLightPath
public boolean linkLightPath(LightPath o)
-
unlinkLightPath
public boolean unlinkLightPath(LightPath o)
-
sizeOfLinkedROIList
public int sizeOfLinkedROIList()
-
copyLinkedROIList
public java.util.List<ROI> copyLinkedROIList()
-
getLinkedROI
public ROI getLinkedROI(int index)
-
linkROI
public boolean linkROI(ROI o)
-
unlinkROI
public boolean unlinkROI(ROI o)
-
sizeOfLinkedShapeList
public int sizeOfLinkedShapeList()
-
copyLinkedShapeList
public java.util.List<Shape> copyLinkedShapeList()
-
getLinkedShape
public Shape getLinkedShape(int index)
-
linkShape
public boolean linkShape(Shape o)
-
unlinkShape
public boolean unlinkShape(Shape o)
-
sizeOfLinkedPlateList
public int sizeOfLinkedPlateList()
-
copyLinkedPlateList
public java.util.List<Plate> copyLinkedPlateList()
-
getLinkedPlate
public Plate getLinkedPlate(int index)
-
linkPlate
public boolean linkPlate(Plate o)
-
unlinkPlate
public boolean unlinkPlate(Plate o)
-
sizeOfLinkedReagentList
public int sizeOfLinkedReagentList()
-
copyLinkedReagentList
public java.util.List<Reagent> copyLinkedReagentList()
-
getLinkedReagent
public Reagent getLinkedReagent(int index)
-
linkReagent
public boolean linkReagent(Reagent o)
-
unlinkReagent
public boolean unlinkReagent(Reagent o)
-
sizeOfLinkedScreenList
public int sizeOfLinkedScreenList()
-
copyLinkedScreenList
public java.util.List<Screen> copyLinkedScreenList()
-
getLinkedScreen
public Screen getLinkedScreen(int index)
-
linkScreen
public boolean linkScreen(Screen o)
-
unlinkScreen
public boolean unlinkScreen(Screen o)
-
sizeOfLinkedPlateAcquisitionList
public int sizeOfLinkedPlateAcquisitionList()
-
copyLinkedPlateAcquisitionList
public java.util.List<PlateAcquisition> copyLinkedPlateAcquisitionList()
-
getLinkedPlateAcquisition
public PlateAcquisition getLinkedPlateAcquisition(int index)
-
setLinkedPlateAcquisition
public PlateAcquisition setLinkedPlateAcquisition(int index, PlateAcquisition o)
-
linkPlateAcquisition
public boolean linkPlateAcquisition(PlateAcquisition o)
-
unlinkPlateAcquisition
public boolean unlinkPlateAcquisition(PlateAcquisition o)
-
sizeOfLinkedWellList
public int sizeOfLinkedWellList()
-
copyLinkedWellList
public java.util.List<Well> copyLinkedWellList()
-
getLinkedWell
public Well getLinkedWell(int index)
-
linkWell
public boolean linkWell(Well o)
-
unlinkWell
public boolean unlinkWell(Well o)
-
asXMLElement
public org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document)
Description copied from interface:OMEModelObjectTakes the entire object hierarchy and produces an XML DOM tree.- Specified by:
asXMLElementin interfaceOMEModelObject- Specified by:
asXMLElementin 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 Annotation_element)Description copied from class:AbstractOMEModelObjectTakes the entire object hierarchy and produced an XML DOM tree taking into account class hierarchy.- Overrides:
asXMLElementin classAbstractOMEModelObject- Parameters:
document- Destination document for element creation, etc.Annotation_element- Element from the subclass. Ifnulla new element will be created of this class.- Returns:
elementpopulated with properties from this class.
-
-