public abstract class Annotation extends AbstractOMEModelObject
Constructor and Description |
---|
Annotation()
Default constructor.
|
Annotation(Element element,
OMEModel model)
Constructs Annotation recursively from an XML DOM tree.
|
getChildrenByTagName, stripNamespacePrefix, update
public static final String NAMESPACE
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 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 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 sizeOfLinkedPixelsList()
public Pixels getLinkedPixels(int index)
public boolean linkPixels(Pixels o)
public boolean unlinkPixels(Pixels 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 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 sizeOfLinkedROIList()
public ROI getLinkedROI(int index)
public boolean linkROI(ROI o)
public boolean unlinkROI(ROI 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 int sizeOfLinkedWellSampleList()
public List<WellSample> copyLinkedWellSampleList()
public WellSample getLinkedWellSample(int index)
public WellSample setLinkedWellSample(int index, WellSample o)
public boolean linkWellSample(WellSample o)
public boolean unlinkWellSample(WellSample 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 © 2014 Open Microscopy Environment