bioformats  5.1.8
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ome::xml::model::StructuredAnnotations Class Reference

StructuredAnnotations model object. More...

#include <ome/xml/model/StructuredAnnotations.h>

+ Inheritance diagram for ome::xml::model::StructuredAnnotations:
+ Collaboration diagram for ome::xml::model::StructuredAnnotations:

Classes

class  Impl
 Private implementation details of StructuredAnnotations model object. More...
 

Public Member Functions

 StructuredAnnotations ()
 Default constructor.
 
 StructuredAnnotations (const StructuredAnnotations &copy)
 Copy constructor. More...
 
virtual ~StructuredAnnotations ()
 Destructor.
 
const std::string & elementName () const
 Get the element name of this model object. More...
 
bool validElementName (const std::string &name) const
 Check if a given element name is valid for processing by this model object. More...
 
virtual void update (const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
 Update the object hierarchy recursively from an XML DOM tree. More...
 
bool link (ome::compat::shared_ptr< Reference > &reference, ome::compat::shared_ptr< ome::xml::model::OMEModelObject > &object)
 Link a given OME model object to this model object. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type sizeOfXMLAnnotationList () const
 Get size of linked XMLAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > > & getXMLAnnotationList ()
 Get the XMLAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > > & getXMLAnnotationList () const
 Get the XMLAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > & getXMLAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type index)
 Get XMLAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > & getXMLAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type index) const
 Get XMLAnnotation. More...
 
void setXMLAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > &xmlAnnotation)
 Set XMLAnnotation. More...
 
void addXMLAnnotation (ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > &xmlAnnotation)
 Add XMLAnnotation. More...
 
void removeXMLAnnotation (ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > &xmlAnnotation)
 Remove XMLAnnotation. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type sizeOfFileAnnotationList () const
 Get size of linked FileAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > > & getFileAnnotationList ()
 Get the FileAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > > & getFileAnnotationList () const
 Get the FileAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::FileAnnotation > & getFileAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type index)
 Get FileAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::FileAnnotation > & getFileAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type index) const
 Get FileAnnotation. More...
 
void setFileAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::FileAnnotation > &fileAnnotation)
 Set FileAnnotation. More...
 
void addFileAnnotation (ome::compat::shared_ptr< ome::xml::model::FileAnnotation > &fileAnnotation)
 Add FileAnnotation. More...
 
void removeFileAnnotation (ome::compat::shared_ptr< ome::xml::model::FileAnnotation > &fileAnnotation)
 Remove FileAnnotation. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type sizeOfListAnnotationList () const
 Get size of linked ListAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > > & getListAnnotationList ()
 Get the ListAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > > & getListAnnotationList () const
 Get the ListAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::ListAnnotation > & getListAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type index)
 Get ListAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::ListAnnotation > & getListAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type index) const
 Get ListAnnotation. More...
 
void setListAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::ListAnnotation > &listAnnotation)
 Set ListAnnotation. More...
 
void addListAnnotation (ome::compat::shared_ptr< ome::xml::model::ListAnnotation > &listAnnotation)
 Add ListAnnotation. More...
 
void removeListAnnotation (ome::compat::shared_ptr< ome::xml::model::ListAnnotation > &listAnnotation)
 Remove ListAnnotation. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type sizeOfLongAnnotationList () const
 Get size of linked LongAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > > & getLongAnnotationList ()
 Get the LongAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > > & getLongAnnotationList () const
 Get the LongAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::LongAnnotation > & getLongAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type index)
 Get LongAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::LongAnnotation > & getLongAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type index) const
 Get LongAnnotation. More...
 
void setLongAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::LongAnnotation > &longAnnotation)
 Set LongAnnotation. More...
 
void addLongAnnotation (ome::compat::shared_ptr< ome::xml::model::LongAnnotation > &longAnnotation)
 Add LongAnnotation. More...
 
void removeLongAnnotation (ome::compat::shared_ptr< ome::xml::model::LongAnnotation > &longAnnotation)
 Remove LongAnnotation. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type sizeOfDoubleAnnotationList () const
 Get size of linked DoubleAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > > & getDoubleAnnotationList ()
 Get the DoubleAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > > & getDoubleAnnotationList () const
 Get the DoubleAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > & getDoubleAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type index)
 Get DoubleAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > & getDoubleAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type index) const
 Get DoubleAnnotation. More...
 
void setDoubleAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > &doubleAnnotation)
 Set DoubleAnnotation. More...
 
void addDoubleAnnotation (ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > &doubleAnnotation)
 Add DoubleAnnotation. More...
 
void removeDoubleAnnotation (ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > &doubleAnnotation)
 Remove DoubleAnnotation. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type sizeOfCommentAnnotationList () const
 Get size of linked CommentAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > > & getCommentAnnotationList ()
 Get the CommentAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > > & getCommentAnnotationList () const
 Get the CommentAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > & getCommentAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type index)
 Get CommentAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > & getCommentAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type index) const
 Get CommentAnnotation. More...
 
void setCommentAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > &commentAnnotation)
 Set CommentAnnotation. More...
 
void addCommentAnnotation (ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > &commentAnnotation)
 Add CommentAnnotation. More...
 
void removeCommentAnnotation (ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > &commentAnnotation)
 Remove CommentAnnotation. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type sizeOfBooleanAnnotationList () const
 Get size of linked BooleanAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > > & getBooleanAnnotationList ()
 Get the BooleanAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > > & getBooleanAnnotationList () const
 Get the BooleanAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > & getBooleanAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type index)
 Get BooleanAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > & getBooleanAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type index) const
 Get BooleanAnnotation. More...
 
void setBooleanAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > &booleanAnnotation)
 Set BooleanAnnotation. More...
 
void addBooleanAnnotation (ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > &booleanAnnotation)
 Add BooleanAnnotation. More...
 
void removeBooleanAnnotation (ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > &booleanAnnotation)
 Remove BooleanAnnotation. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type sizeOfTimestampAnnotationList () const
 Get size of linked TimestampAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > > & getTimestampAnnotationList ()
 Get the TimestampAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > > & getTimestampAnnotationList () const
 Get the TimestampAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > & getTimestampAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type index)
 Get TimestampAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > & getTimestampAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type index) const
 Get TimestampAnnotation. More...
 
void setTimestampAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > &timestampAnnotation)
 Set TimestampAnnotation. More...
 
void addTimestampAnnotation (ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > &timestampAnnotation)
 Add TimestampAnnotation. More...
 
void removeTimestampAnnotation (ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > &timestampAnnotation)
 Remove TimestampAnnotation. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type sizeOfTagAnnotationList () const
 Get size of linked TagAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > > & getTagAnnotationList ()
 Get the TagAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > > & getTagAnnotationList () const
 Get the TagAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::TagAnnotation > & getTagAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type index)
 Get TagAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::TagAnnotation > & getTagAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type index) const
 Get TagAnnotation. More...
 
void setTagAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::TagAnnotation > &tagAnnotation)
 Set TagAnnotation. More...
 
void addTagAnnotation (ome::compat::shared_ptr< ome::xml::model::TagAnnotation > &tagAnnotation)
 Add TagAnnotation. More...
 
void removeTagAnnotation (ome::compat::shared_ptr< ome::xml::model::TagAnnotation > &tagAnnotation)
 Remove TagAnnotation. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type sizeOfTermAnnotationList () const
 Get size of linked TermAnnotation list. More...
 
std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > > & getTermAnnotationList ()
 Get the TermAnnotation list. More...
 
const std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > > & getTermAnnotationList () const
 Get the TermAnnotation list. More...
 
ome::compat::shared_ptr< ome::xml::model::TermAnnotation > & getTermAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type index)
 Get TermAnnotation. More...
 
const ome::compat::shared_ptr< ome::xml::model::TermAnnotation > & getTermAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type index) const
 Get TermAnnotation. More...
 
void setTermAnnotation (std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::TermAnnotation > &termAnnotation)
 Set TermAnnotation. More...
 
void addTermAnnotation (ome::compat::shared_ptr< ome::xml::model::TermAnnotation > &termAnnotation)
 Add TermAnnotation. More...
 
void removeTermAnnotation (ome::compat::shared_ptr< ome::xml::model::TermAnnotation > &termAnnotation)
 Remove TermAnnotation. More...
 
virtual common::xml::dom::Element asXMLElement (common::xml::dom::Document &document) const
 Transform the object hierarchy rooted at this element to XML. More...
 
const std::string & getXMLNamespace () const
 Get the XML namespace for this model object. More...
 
- Public Member Functions inherited from ome::xml::model::detail::OMEModelObject
virtual ~OMEModelObject ()
 Destructor.
 
virtual void update (const common::xml::dom::Element &element,::ome::xml::model::OMEModel &model)
 Update the object hierarchy recursively from an XML DOM tree. More...
 
virtual bool link (ome::compat::shared_ptr< Reference > &reference, ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject > &object)
 Link a given OME model object to this model object. More...
 
- Public Member Functions inherited from ome::xml::model::OMEModelObject
virtual bool link (ome::compat::shared_ptr< Reference > &reference, ome::compat::shared_ptr< OMEModelObject > &object)=0
 Link a given OME model object to this model object. More...
 

Static Public Member Functions

static ome::compat::shared_ptr< StructuredAnnotationscreate (const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
 Create a StructuredAnnotations model object from DOM element. More...
 
- Static Public Member Functions inherited from ome::xml::model::detail::OMEModelObject
static std::vector< common::xml::dom::ElementgetChildrenByTagName (const common::xml::dom::Element &parent, const std::string &name)
 Retrieve all the children of an element that have a given tag name. More...
 
static std::string stripNamespacePrefix (const std::string &value)
 Strip the namespace prefix from a tag name. More...
 

Protected Member Functions

virtual common::xml::dom::Element asXMLElementInternal (common::xml::dom::Document &document, common::xml::dom::Element &element) const
 Transform the object hierarchy rooted at this element to XML. More...
 
- Protected Member Functions inherited from ome::xml::model::detail::OMEModelObject
 OMEModelObject (const std::string &objectType="OMEModelObject")
 Constructor.
 
 OMEModelObject (const OMEModelObject &copy)
 Copy constructor. More...
 
template<class C , typename T >
bool contains (const C &container, const ome::compat::shared_ptr< T > &element)
 Check if a container contains a particular element. More...
 
- Protected Member Functions inherited from ome::xml::model::OMEModelObject
 OMEModelObject ()
 Constructor.
 

Private Attributes

ome::compat::shared_ptr< Implimpl
 Private implementation details.
 

Additional Inherited Members

- Protected Attributes inherited from ome::xml::model::detail::OMEModelObject
ome::common::Logger logger
 Message logger.
 

Detailed Description

StructuredAnnotations model object.

Constructor & Destructor Documentation

ome::xml::model::StructuredAnnotations::StructuredAnnotations ( const StructuredAnnotations copy)

Copy constructor.

Parameters
copythe StructuredAnnotations to copy.

Member Function Documentation

void ome::xml::model::StructuredAnnotations::addBooleanAnnotation ( ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > &  booleanAnnotation)

Add BooleanAnnotation.

Parameters
booleanAnnotationthe BooleanAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

void ome::xml::model::StructuredAnnotations::addCommentAnnotation ( ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > &  commentAnnotation)

Add CommentAnnotation.

Parameters
commentAnnotationthe CommentAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

void ome::xml::model::StructuredAnnotations::addDoubleAnnotation ( ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > &  doubleAnnotation)

Add DoubleAnnotation.

Parameters
doubleAnnotationthe DoubleAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

void ome::xml::model::StructuredAnnotations::addFileAnnotation ( ome::compat::shared_ptr< ome::xml::model::FileAnnotation > &  fileAnnotation)

Add FileAnnotation.

Parameters
fileAnnotationthe FileAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

void ome::xml::model::StructuredAnnotations::addListAnnotation ( ome::compat::shared_ptr< ome::xml::model::ListAnnotation > &  listAnnotation)

Add ListAnnotation.

Parameters
listAnnotationthe ListAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

void ome::xml::model::StructuredAnnotations::addLongAnnotation ( ome::compat::shared_ptr< ome::xml::model::LongAnnotation > &  longAnnotation)

Add LongAnnotation.

Parameters
longAnnotationthe LongAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

void ome::xml::model::StructuredAnnotations::addTagAnnotation ( ome::compat::shared_ptr< ome::xml::model::TagAnnotation > &  tagAnnotation)

Add TagAnnotation.

Parameters
tagAnnotationthe TagAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

void ome::xml::model::StructuredAnnotations::addTermAnnotation ( ome::compat::shared_ptr< ome::xml::model::TermAnnotation > &  termAnnotation)

Add TermAnnotation.

Parameters
termAnnotationthe TermAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

void ome::xml::model::StructuredAnnotations::addTimestampAnnotation ( ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > &  timestampAnnotation)

Add TimestampAnnotation.

Parameters
timestampAnnotationthe TimestampAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

void ome::xml::model::StructuredAnnotations::addXMLAnnotation ( ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > &  xmlAnnotation)

Add XMLAnnotation.

Parameters
xmlAnnotationthe XMLAnnotation to add.
Todo:

Return list position?

Detect and handle duplicates?

References impl.

Referenced by update().

+ Here is the caller graph for this function:

common::xml::dom::Element ome::xml::model::StructuredAnnotations::asXMLElement ( common::xml::dom::Document document) const
virtual

Transform the object hierarchy rooted at this element to XML.

Parameters
documentdocument for element creation
Returns
an XML DOM tree root element for this model object.

Implements ome::xml::model::OMEModelObject.

References asXMLElementInternal(), ome::common::xml::dom::Document::createElementNS(), and getXMLNamespace().

common::xml::dom::Element ome::xml::model::StructuredAnnotations::asXMLElementInternal ( common::xml::dom::Document document,
common::xml::dom::Element element 
) const
protectedvirtual

Transform the object hierarchy rooted at this element to XML.

This internal implementation of asXMLelement also requires an XML element, which must not be null, or may be instantiated and passed from superclasses.

Parameters
documentXML document for element creation.
elementXML element for setting model data.
Returns
an XML DOM tree root element for this model object.

Implements ome::xml::model::detail::OMEModelObject.

References ome::common::xml::dom::Node::appendChild(), ome::xml::model::detail::OMEModelObject::asXMLElementInternal(), ome::common::xml::dom::Document::createElementNS(), getXMLNamespace(), and impl.

Referenced by asXMLElement().

+ Here is the caller graph for this function:

ome::compat::shared_ptr< StructuredAnnotations > ome::xml::model::StructuredAnnotations::create ( const common::xml::dom::Element element,
ome::xml::model::OMEModel model 
)
static

Create a StructuredAnnotations model object from DOM element.

Parameters
elementroot of the XML DOM tree to from which to construct the model object graph.
modelhandler for the OME model used to track instances and references seen during the update.
Exceptions
EnumerationExceptionif there is an error instantiating an enumeration during model object creation, or ModelException if there are any consistency or validity errors found during processing.
Returns
a new model object.

Referenced by ome::xml::model::OME::update().

+ Here is the caller graph for this function:

const std::string & ome::xml::model::StructuredAnnotations::elementName ( ) const
virtual

Get the element name of this model object.

This will be the most-derived class name.

Returns
the element type.

Implements ome::xml::model::OMEModelObject.

ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > & ome::xml::model::StructuredAnnotations::getBooleanAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type  index)

Get BooleanAnnotation.

Parameters
indexthe index number of the BooleanAnnotation.
Returns
the BooleanAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > & ome::xml::model::StructuredAnnotations::getBooleanAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type  index) const

Get BooleanAnnotation.

Parameters
indexthe index number of the BooleanAnnotation.
Returns
the BooleanAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > > & ome::xml::model::StructuredAnnotations::getBooleanAnnotationList ( )

Get the BooleanAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > > & ome::xml::model::StructuredAnnotations::getBooleanAnnotationList ( ) const

Get the BooleanAnnotation list.

Returns
a reference to the list.

References impl.

ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > & ome::xml::model::StructuredAnnotations::getCommentAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type  index)

Get CommentAnnotation.

Parameters
indexthe index number of the CommentAnnotation.
Returns
the CommentAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > & ome::xml::model::StructuredAnnotations::getCommentAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type  index) const

Get CommentAnnotation.

Parameters
indexthe index number of the CommentAnnotation.
Returns
the CommentAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > > & ome::xml::model::StructuredAnnotations::getCommentAnnotationList ( )

Get the CommentAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > > & ome::xml::model::StructuredAnnotations::getCommentAnnotationList ( ) const

Get the CommentAnnotation list.

Returns
a reference to the list.

References impl.

ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > & ome::xml::model::StructuredAnnotations::getDoubleAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type  index)

Get DoubleAnnotation.

Parameters
indexthe index number of the DoubleAnnotation.
Returns
the DoubleAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > & ome::xml::model::StructuredAnnotations::getDoubleAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type  index) const

Get DoubleAnnotation.

Parameters
indexthe index number of the DoubleAnnotation.
Returns
the DoubleAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > > & ome::xml::model::StructuredAnnotations::getDoubleAnnotationList ( )

Get the DoubleAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > > & ome::xml::model::StructuredAnnotations::getDoubleAnnotationList ( ) const

Get the DoubleAnnotation list.

Returns
a reference to the list.

References impl.

ome::compat::shared_ptr< ome::xml::model::FileAnnotation > & ome::xml::model::StructuredAnnotations::getFileAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type  index)

Get FileAnnotation.

Parameters
indexthe index number of the FileAnnotation.
Returns
the FileAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::FileAnnotation > & ome::xml::model::StructuredAnnotations::getFileAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type  index) const

Get FileAnnotation.

Parameters
indexthe index number of the FileAnnotation.
Returns
the FileAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > > & ome::xml::model::StructuredAnnotations::getFileAnnotationList ( )

Get the FileAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > > & ome::xml::model::StructuredAnnotations::getFileAnnotationList ( ) const

Get the FileAnnotation list.

Returns
a reference to the list.

References impl.

ome::compat::shared_ptr< ome::xml::model::ListAnnotation > & ome::xml::model::StructuredAnnotations::getListAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type  index)

Get ListAnnotation.

Parameters
indexthe index number of the ListAnnotation.
Returns
the ListAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::ListAnnotation > & ome::xml::model::StructuredAnnotations::getListAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type  index) const

Get ListAnnotation.

Parameters
indexthe index number of the ListAnnotation.
Returns
the ListAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > > & ome::xml::model::StructuredAnnotations::getListAnnotationList ( )

Get the ListAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > > & ome::xml::model::StructuredAnnotations::getListAnnotationList ( ) const

Get the ListAnnotation list.

Returns
a reference to the list.

References impl.

ome::compat::shared_ptr< ome::xml::model::LongAnnotation > & ome::xml::model::StructuredAnnotations::getLongAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type  index)

Get LongAnnotation.

Parameters
indexthe index number of the LongAnnotation.
Returns
the LongAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::LongAnnotation > & ome::xml::model::StructuredAnnotations::getLongAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type  index) const

Get LongAnnotation.

Parameters
indexthe index number of the LongAnnotation.
Returns
the LongAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > > & ome::xml::model::StructuredAnnotations::getLongAnnotationList ( )

Get the LongAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > > & ome::xml::model::StructuredAnnotations::getLongAnnotationList ( ) const

Get the LongAnnotation list.

Returns
a reference to the list.

References impl.

ome::compat::shared_ptr< ome::xml::model::TagAnnotation > & ome::xml::model::StructuredAnnotations::getTagAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type  index)

Get TagAnnotation.

Parameters
indexthe index number of the TagAnnotation.
Returns
the TagAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::TagAnnotation > & ome::xml::model::StructuredAnnotations::getTagAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type  index) const

Get TagAnnotation.

Parameters
indexthe index number of the TagAnnotation.
Returns
the TagAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > > & ome::xml::model::StructuredAnnotations::getTagAnnotationList ( )

Get the TagAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > > & ome::xml::model::StructuredAnnotations::getTagAnnotationList ( ) const

Get the TagAnnotation list.

Returns
a reference to the list.

References impl.

ome::compat::shared_ptr< ome::xml::model::TermAnnotation > & ome::xml::model::StructuredAnnotations::getTermAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type  index)

Get TermAnnotation.

Parameters
indexthe index number of the TermAnnotation.
Returns
the TermAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::TermAnnotation > & ome::xml::model::StructuredAnnotations::getTermAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type  index) const

Get TermAnnotation.

Parameters
indexthe index number of the TermAnnotation.
Returns
the TermAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > > & ome::xml::model::StructuredAnnotations::getTermAnnotationList ( )

Get the TermAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > > & ome::xml::model::StructuredAnnotations::getTermAnnotationList ( ) const

Get the TermAnnotation list.

Returns
a reference to the list.

References impl.

ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > & ome::xml::model::StructuredAnnotations::getTimestampAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type  index)

Get TimestampAnnotation.

Parameters
indexthe index number of the TimestampAnnotation.
Returns
the TimestampAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > & ome::xml::model::StructuredAnnotations::getTimestampAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type  index) const

Get TimestampAnnotation.

Parameters
indexthe index number of the TimestampAnnotation.
Returns
the TimestampAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > > & ome::xml::model::StructuredAnnotations::getTimestampAnnotationList ( )

Get the TimestampAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > > & ome::xml::model::StructuredAnnotations::getTimestampAnnotationList ( ) const

Get the TimestampAnnotation list.

Returns
a reference to the list.

References impl.

ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > & ome::xml::model::StructuredAnnotations::getXMLAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type  index)

Get XMLAnnotation.

Parameters
indexthe index number of the XMLAnnotation.
Returns
the XMLAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

const ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > & ome::xml::model::StructuredAnnotations::getXMLAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type  index) const

Get XMLAnnotation.

Parameters
indexthe index number of the XMLAnnotation.
Returns
the XMLAnnotation.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > > & ome::xml::model::StructuredAnnotations::getXMLAnnotationList ( )

Get the XMLAnnotation list.

Returns
a reference to the list.

References impl.

const std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > > & ome::xml::model::StructuredAnnotations::getXMLAnnotationList ( ) const

Get the XMLAnnotation list.

Returns
a reference to the list.

References impl.

const std::string & ome::xml::model::StructuredAnnotations::getXMLNamespace ( ) const
virtual

Get the XML namespace for this model object.

Returns
the XML namespace.

Implements ome::xml::model::OMEModelObject.

Referenced by asXMLElement(), and asXMLElementInternal().

+ Here is the caller graph for this function:

bool ome::xml::model::StructuredAnnotations::link ( ome::compat::shared_ptr< Reference > &  reference,
ome::compat::shared_ptr< ome::xml::model::OMEModelObject > &  object 
)

Link a given OME model object to this model object.

Parameters
referencetype qualifier for the reference. This should be the corresponding reference type for object. If, for example, object is of type Image, reference must be of type ImageRef.
objectModel object to link to.
Returns
true if this model object was able to handle the reference, otherwise false.
Todo:
the use of reference to provide type information for the type of object is unconventional and quite possibly unnecessary–a simple string or type_info would suffice for what it's being used for, if it's needed at all. Is this true for all cases? The implementation also needs to do strict checking of the object type; it's not currently failing if it's of the wrong type. This applies to all generated model objects implementing this interface.

References ome::xml::model::detail::OMEModelObject::link(), and ome::xml::model::detail::OMEModelObject::logger.

void ome::xml::model::StructuredAnnotations::removeBooleanAnnotation ( ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > &  booleanAnnotation)

Remove BooleanAnnotation.

Parameters
booleanAnnotationthe BooleanAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::removeCommentAnnotation ( ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > &  commentAnnotation)

Remove CommentAnnotation.

Parameters
commentAnnotationthe CommentAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::removeDoubleAnnotation ( ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > &  doubleAnnotation)

Remove DoubleAnnotation.

Parameters
doubleAnnotationthe DoubleAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::removeFileAnnotation ( ome::compat::shared_ptr< ome::xml::model::FileAnnotation > &  fileAnnotation)

Remove FileAnnotation.

Parameters
fileAnnotationthe FileAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::removeListAnnotation ( ome::compat::shared_ptr< ome::xml::model::ListAnnotation > &  listAnnotation)

Remove ListAnnotation.

Parameters
listAnnotationthe ListAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::removeLongAnnotation ( ome::compat::shared_ptr< ome::xml::model::LongAnnotation > &  longAnnotation)

Remove LongAnnotation.

Parameters
longAnnotationthe LongAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::removeTagAnnotation ( ome::compat::shared_ptr< ome::xml::model::TagAnnotation > &  tagAnnotation)

Remove TagAnnotation.

Parameters
tagAnnotationthe TagAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::removeTermAnnotation ( ome::compat::shared_ptr< ome::xml::model::TermAnnotation > &  termAnnotation)

Remove TermAnnotation.

Parameters
termAnnotationthe TermAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::removeTimestampAnnotation ( ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > &  timestampAnnotation)

Remove TimestampAnnotation.

Parameters
timestampAnnotationthe TimestampAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::removeXMLAnnotation ( ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > &  xmlAnnotation)

Remove XMLAnnotation.

Parameters
xmlAnnotationthe XMLAnnotation to remove.
Todo:

Doesn't the removal break the indexing?

Does the removal deal with multiple instances; we aren't preventing duplicates on insertion.

References impl.

void ome::xml::model::StructuredAnnotations::setBooleanAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > &  booleanAnnotation 
)

Set BooleanAnnotation.

Parameters
indexthe index number of the BooleanAnnotation.
booleanAnnotationthe BooleanAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

void ome::xml::model::StructuredAnnotations::setCommentAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > &  commentAnnotation 
)

Set CommentAnnotation.

Parameters
indexthe index number of the CommentAnnotation.
commentAnnotationthe CommentAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

void ome::xml::model::StructuredAnnotations::setDoubleAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > &  doubleAnnotation 
)

Set DoubleAnnotation.

Parameters
indexthe index number of the DoubleAnnotation.
doubleAnnotationthe DoubleAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

void ome::xml::model::StructuredAnnotations::setFileAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::FileAnnotation > &  fileAnnotation 
)

Set FileAnnotation.

Parameters
indexthe index number of the FileAnnotation.
fileAnnotationthe FileAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

void ome::xml::model::StructuredAnnotations::setListAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::ListAnnotation > &  listAnnotation 
)

Set ListAnnotation.

Parameters
indexthe index number of the ListAnnotation.
listAnnotationthe ListAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

void ome::xml::model::StructuredAnnotations::setLongAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::LongAnnotation > &  longAnnotation 
)

Set LongAnnotation.

Parameters
indexthe index number of the LongAnnotation.
longAnnotationthe LongAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

void ome::xml::model::StructuredAnnotations::setTagAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::TagAnnotation > &  tagAnnotation 
)

Set TagAnnotation.

Parameters
indexthe index number of the TagAnnotation.
tagAnnotationthe TagAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

void ome::xml::model::StructuredAnnotations::setTermAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::TermAnnotation > &  termAnnotation 
)

Set TermAnnotation.

Parameters
indexthe index number of the TermAnnotation.
termAnnotationthe TermAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

void ome::xml::model::StructuredAnnotations::setTimestampAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > &  timestampAnnotation 
)

Set TimestampAnnotation.

Parameters
indexthe index number of the TimestampAnnotation.
timestampAnnotationthe TimestampAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

void ome::xml::model::StructuredAnnotations::setXMLAnnotation ( std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type  index,
ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > &  xmlAnnotation 
)

Set XMLAnnotation.

Parameters
indexthe index number of the XMLAnnotation.
xmlAnnotationthe XMLAnnotation to set.
Exceptions
std::out_of_rangeif the index is invalid.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfBooleanAnnotationList ( ) const

Get size of linked BooleanAnnotation list.

Returns
the size of the list.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfCommentAnnotationList ( ) const

Get size of linked CommentAnnotation list.

Returns
the size of the list.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfDoubleAnnotationList ( ) const

Get size of linked DoubleAnnotation list.

Returns
the size of the list.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfFileAnnotationList ( ) const

Get size of linked FileAnnotation list.

Returns
the size of the list.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfListAnnotationList ( ) const

Get size of linked ListAnnotation list.

Returns
the size of the list.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfLongAnnotationList ( ) const

Get size of linked LongAnnotation list.

Returns
the size of the list.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfTagAnnotationList ( ) const

Get size of linked TagAnnotation list.

Returns
the size of the list.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfTermAnnotationList ( ) const

Get size of linked TermAnnotation list.

Returns
the size of the list.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfTimestampAnnotationList ( ) const

Get size of linked TimestampAnnotation list.

Returns
the size of the list.

References impl.

std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type ome::xml::model::StructuredAnnotations::sizeOfXMLAnnotationList ( ) const

Get size of linked XMLAnnotation list.

Returns
the size of the list.

References impl.

void ome::xml::model::StructuredAnnotations::update ( const common::xml::dom::Element element,
ome::xml::model::OMEModel model 
)
virtual

Update the object hierarchy recursively from an XML DOM tree.

Note
No properties are removed, only added or updated.
Parameters
elementroot of the XML DOM tree to from which to construct the model object graph.
modelhandler for the OME model used to track instances and references seen during the update.
Exceptions
EnumerationExceptionif there is an error instantiating an enumeration during model object creation, or ModelException if there are any consistency or validity errors found during processing.

Implements ome::xml::model::OMEModelObject.

References addBooleanAnnotation(), addCommentAnnotation(), addDoubleAnnotation(), addFileAnnotation(), addListAnnotation(), addLongAnnotation(), addTagAnnotation(), addTermAnnotation(), addTimestampAnnotation(), addXMLAnnotation(), ome::xml::model::BooleanAnnotation::create(), ome::xml::model::CommentAnnotation::create(), ome::xml::model::DoubleAnnotation::create(), ome::xml::model::TermAnnotation::create(), ome::xml::model::XMLAnnotation::create(), ome::xml::model::ListAnnotation::create(), ome::xml::model::LongAnnotation::create(), ome::xml::model::TagAnnotation::create(), ome::xml::model::FileAnnotation::create(), ome::xml::model::TimestampAnnotation::create(), ome::xml::model::detail::OMEModelObject::getChildrenByTagName(), ome::common::xml::dom::Element::getTagName(), ome::xml::model::detail::OMEModelObject::logger, ome::xml::model::detail::OMEModelObject::stripNamespacePrefix(), ome::xml::model::detail::OMEModelObject::update(), and validElementName().

bool ome::xml::model::StructuredAnnotations::validElementName ( const std::string &  name) const
virtual

Check if a given element name is valid for processing by this model object.

Used for processing nodes when interitance is involved.

Parameters
namethe element name to check.
Returns
true if valid, false if invalid.

Implements ome::xml::model::detail::OMEModelObject.

References ome::xml::model::detail::OMEModelObject::validElementName().

Referenced by update().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: