public abstract class Annotation extends AbstractOMEModelObject
Constructor and Description |
---|
Annotation()
Default constructor.
|
Annotation(Annotation orig)
Copy constructor.
|
Annotation(Element element,
OMEModel model)
Constructs Annotation recursively from an XML DOM tree.
|
getChildrenByTagName, stripNamespacePrefix
public static final String NAMESPACE
private static final org.slf4j.Logger LOGGER
private String namespace
private String id
private String annotator
private String description
private List<Annotation> annotationLinks
private List<Instrument> instrumentLinks
private List<ExperimenterGroup> experimenterGroupLinks
private List<Experimenter> experimenterLinks
private List<LightSource> lightSourceLinks
private List<PlateAcquisition> plateAcquisitionLinks
public Annotation()
public Annotation(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 Annotation(Annotation 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 getNamespace()
public void setNamespace(String namespace)
public String getID()
public void setID(String id)
public String getAnnotator()
public void setAnnotator(String annotator)
public String getDescription()
public void setDescription(String description)
public int sizeOfLinkedAnnotationList()
public List<Annotation> copyLinkedAnnotationList()
public Annotation getLinkedAnnotation(int index)
public Annotation setLinkedAnnotation(int index, Annotation o)
public boolean linkAnnotation(Annotation o)
public boolean unlinkAnnotation(Annotation o)
public int sizeOfLinkedImageList()
public Image getLinkedImage(int index)
public boolean linkImage(Image o)
public boolean unlinkImage(Image o)
public int sizeOfLinkedPlaneList()
public Plane getLinkedPlane(int index)
public boolean linkPlane(Plane o)
public boolean unlinkPlane(Plane o)
public int sizeOfLinkedChannelList()
public Channel getLinkedChannel(int index)
public boolean linkChannel(Channel o)
public boolean unlinkChannel(Channel o)
public int sizeOfLinkedInstrumentList()
public List<Instrument> copyLinkedInstrumentList()
public Instrument getLinkedInstrument(int index)
public Instrument setLinkedInstrument(int index, Instrument o)
public boolean linkInstrument(Instrument o)
public boolean unlinkInstrument(Instrument o)
public int sizeOfLinkedProjectList()
public Project getLinkedProject(int index)
public boolean linkProject(Project o)
public boolean unlinkProject(Project o)
public int sizeOfLinkedExperimenterGroupList()
public List<ExperimenterGroup> copyLinkedExperimenterGroupList()
public ExperimenterGroup getLinkedExperimenterGroup(int index)
public ExperimenterGroup setLinkedExperimenterGroup(int index, ExperimenterGroup o)
public boolean linkExperimenterGroup(ExperimenterGroup o)
public boolean unlinkExperimenterGroup(ExperimenterGroup o)
public int sizeOfLinkedDatasetList()
public Dataset getLinkedDataset(int index)
public boolean linkDataset(Dataset o)
public boolean unlinkDataset(Dataset o)
public int sizeOfLinkedExperimenterList()
public List<Experimenter> copyLinkedExperimenterList()
public Experimenter getLinkedExperimenter(int index)
public Experimenter setLinkedExperimenter(int index, Experimenter o)
public boolean linkExperimenter(Experimenter o)
public boolean unlinkExperimenter(Experimenter o)
public int sizeOfLinkedObjectiveList()
public Objective getLinkedObjective(int index)
public boolean linkObjective(Objective o)
public boolean unlinkObjective(Objective o)
public int sizeOfLinkedDetectorList()
public Detector getLinkedDetector(int index)
public boolean linkDetector(Detector o)
public boolean unlinkDetector(Detector o)
public int sizeOfLinkedFilterList()
public Filter getLinkedFilter(int index)
public boolean linkFilter(Filter o)
public boolean unlinkFilter(Filter o)
public int sizeOfLinkedDichroicList()
public Dichroic getLinkedDichroic(int index)
public boolean linkDichroic(Dichroic o)
public boolean unlinkDichroic(Dichroic o)
public int sizeOfLinkedLightPathList()
public LightPath getLinkedLightPath(int index)
public boolean linkLightPath(LightPath o)
public boolean unlinkLightPath(LightPath o)
public int sizeOfLinkedLightSourceList()
public List<LightSource> copyLinkedLightSourceList()
public LightSource getLinkedLightSource(int index)
public LightSource setLinkedLightSource(int index, LightSource o)
public boolean linkLightSource(LightSource o)
public boolean unlinkLightSource(LightSource o)
public int sizeOfLinkedROIList()
public ROI getLinkedROI(int index)
public boolean linkROI(ROI o)
public boolean unlinkROI(ROI o)
public int sizeOfLinkedShapeList()
public Shape getLinkedShape(int index)
public boolean linkShape(Shape o)
public boolean unlinkShape(Shape o)
public int sizeOfLinkedPlateList()
public Plate getLinkedPlate(int index)
public boolean linkPlate(Plate o)
public boolean unlinkPlate(Plate o)
public int sizeOfLinkedReagentList()
public Reagent getLinkedReagent(int index)
public boolean linkReagent(Reagent o)
public boolean unlinkReagent(Reagent o)
public int sizeOfLinkedScreenList()
public Screen getLinkedScreen(int index)
public boolean linkScreen(Screen o)
public boolean unlinkScreen(Screen o)
public int sizeOfLinkedPlateAcquisitionList()
public List<PlateAcquisition> copyLinkedPlateAcquisitionList()
public PlateAcquisition getLinkedPlateAcquisition(int index)
public PlateAcquisition setLinkedPlateAcquisition(int index, PlateAcquisition o)
public boolean linkPlateAcquisition(PlateAcquisition o)
public boolean unlinkPlateAcquisition(PlateAcquisition o)
public int sizeOfLinkedWellList()
public Well getLinkedWell(int index)
public boolean linkWell(Well o)
public boolean unlinkWell(Well 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 Annotation_element)
AbstractOMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.Annotation_element
- Element from the subclass. If null a new
element will be created of this class.element
populated with properties from this class.Copyright © 2016 Open Microscopy Environment