public class StructuredAnnotations extends AbstractOMEModelObject
Constructor and Description |
---|
StructuredAnnotations()
Default constructor.
|
StructuredAnnotations(Element element,
OMEModel model)
Constructs StructuredAnnotations recursively from an XML DOM tree.
|
getChildrenByTagName, stripNamespacePrefix, update
public static final String NAMESPACE
public StructuredAnnotations()
public StructuredAnnotations(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 int sizeOfXMLAnnotationList()
public List<XMLAnnotation> copyXMLAnnotationList()
public XMLAnnotation getXMLAnnotation(int index)
public XMLAnnotation setXMLAnnotation(int index, XMLAnnotation xmlAnnotation)
public void addXMLAnnotation(XMLAnnotation xmlAnnotation)
public void removeXMLAnnotation(XMLAnnotation xmlAnnotation)
public int sizeOfFileAnnotationList()
public List<FileAnnotation> copyFileAnnotationList()
public FileAnnotation getFileAnnotation(int index)
public FileAnnotation setFileAnnotation(int index, FileAnnotation fileAnnotation)
public void addFileAnnotation(FileAnnotation fileAnnotation)
public void removeFileAnnotation(FileAnnotation fileAnnotation)
public int sizeOfListAnnotationList()
public List<ListAnnotation> copyListAnnotationList()
public ListAnnotation getListAnnotation(int index)
public ListAnnotation setListAnnotation(int index, ListAnnotation listAnnotation)
public void addListAnnotation(ListAnnotation listAnnotation)
public void removeListAnnotation(ListAnnotation listAnnotation)
public int sizeOfLongAnnotationList()
public List<LongAnnotation> copyLongAnnotationList()
public LongAnnotation getLongAnnotation(int index)
public LongAnnotation setLongAnnotation(int index, LongAnnotation longAnnotation)
public void addLongAnnotation(LongAnnotation longAnnotation)
public void removeLongAnnotation(LongAnnotation longAnnotation)
public int sizeOfDoubleAnnotationList()
public List<DoubleAnnotation> copyDoubleAnnotationList()
public DoubleAnnotation getDoubleAnnotation(int index)
public DoubleAnnotation setDoubleAnnotation(int index, DoubleAnnotation doubleAnnotation)
public void addDoubleAnnotation(DoubleAnnotation doubleAnnotation)
public void removeDoubleAnnotation(DoubleAnnotation doubleAnnotation)
public int sizeOfCommentAnnotationList()
public List<CommentAnnotation> copyCommentAnnotationList()
public CommentAnnotation getCommentAnnotation(int index)
public CommentAnnotation setCommentAnnotation(int index, CommentAnnotation commentAnnotation)
public void addCommentAnnotation(CommentAnnotation commentAnnotation)
public void removeCommentAnnotation(CommentAnnotation commentAnnotation)
public int sizeOfBooleanAnnotationList()
public List<BooleanAnnotation> copyBooleanAnnotationList()
public BooleanAnnotation getBooleanAnnotation(int index)
public BooleanAnnotation setBooleanAnnotation(int index, BooleanAnnotation booleanAnnotation)
public void addBooleanAnnotation(BooleanAnnotation booleanAnnotation)
public void removeBooleanAnnotation(BooleanAnnotation booleanAnnotation)
public int sizeOfTimestampAnnotationList()
public List<TimestampAnnotation> copyTimestampAnnotationList()
public TimestampAnnotation getTimestampAnnotation(int index)
public TimestampAnnotation setTimestampAnnotation(int index, TimestampAnnotation timestampAnnotation)
public void addTimestampAnnotation(TimestampAnnotation timestampAnnotation)
public void removeTimestampAnnotation(TimestampAnnotation timestampAnnotation)
public int sizeOfTagAnnotationList()
public List<TagAnnotation> copyTagAnnotationList()
public TagAnnotation getTagAnnotation(int index)
public TagAnnotation setTagAnnotation(int index, TagAnnotation tagAnnotation)
public void addTagAnnotation(TagAnnotation tagAnnotation)
public void removeTagAnnotation(TagAnnotation tagAnnotation)
public int sizeOfTermAnnotationList()
public List<TermAnnotation> copyTermAnnotationList()
public TermAnnotation getTermAnnotation(int index)
public TermAnnotation setTermAnnotation(int index, TermAnnotation termAnnotation)
public void addTermAnnotation(TermAnnotation termAnnotation)
public void removeTermAnnotation(TermAnnotation termAnnotation)
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 StructuredAnnotations_element)
AbstractOMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.StructuredAnnotations_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