bioformats  5.1.3
StructuredAnnotations.h
1 /*
2  * #%L
3  * OME-XML C++ library for working with OME-XML metadata structures.
4  * %%
5  * Copyright © 2006 - 2015 Open Microscopy Environment:
6  * - Massachusetts Institute of Technology
7  * - National Institutes of Health
8  * - University of Dundee
9  * - Board of Regents of the University of Wisconsin-Madison
10  * - Glencoe Software, Inc.
11  * %%
12  * Redistribution and use in source and binary forms, with or without
13  * modification, are permitted provided that the following conditions are met:
14  *
15  * 1. Redistributions of source code must retain the above copyright notice,
16  * this list of conditions and the following disclaimer.
17  * 2. Redistributions in binary form must reproduce the above copyright notice,
18  * this list of conditions and the following disclaimer in the documentation
19  * and/or other materials provided with the distribution.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  *
33  * The views and conclusions contained in the software and documentation are
34  * those of the authors and should not be interpreted as representing official
35  * policies, either expressed or implied, of any organization.
36  * #L%
37  */
38 
39 /*─────────────────────────────────────────────────────────────────────────────
40  *
41  * THIS IS AUTOMATICALLY GENERATED CODE. DO NOT MODIFY.
42  *
43  *─────────────────────────────────────────────────────────────────────────────
44  */
45 
46 #ifndef OME_XML_MODEL_STRUCTUREDANNOTATIONS_H
47 #define OME_XML_MODEL_STRUCTUREDANNOTATIONS_H
48 
49 #include <algorithm>
50 #include <list>
51 #include <stdexcept>
52 #include <string>
53 #include <vector>
54 
55 #include <ome/common/log.h>
56 
57 #include <ome/common/xml/dom/Document.h>
58 #include <ome/common/xml/dom/Element.h>
59 #include <ome/common/xml/dom/Node.h>
60 #include <ome/common/xml/dom/NodeList.h>
61 
62 #include <ome/xml/model/detail/OMEModelObject.h>
63 
64 namespace ome
65 {
66  namespace xml
67  {
68  namespace model
69  {
70 
71  // Forward declarations.
72  class BooleanAnnotation;
73  class CommentAnnotation;
74  class DoubleAnnotation;
75  class FileAnnotation;
76  class ListAnnotation;
77  class LongAnnotation;
78  class OMEModel;
79  class TagAnnotation;
80  class TermAnnotation;
81  class TimestampAnnotation;
82  class XMLAnnotation;
83 
88  {
89  private:
91  std::vector<ome::compat::shared_ptr<ome::xml::model::XMLAnnotation> > xmlAnnotations;
93  std::vector<ome::compat::shared_ptr<ome::xml::model::FileAnnotation> > fileAnnotations;
95  std::vector<ome::compat::shared_ptr<ome::xml::model::ListAnnotation> > listAnnotations;
97  std::vector<ome::compat::shared_ptr<ome::xml::model::LongAnnotation> > longAnnotations;
99  std::vector<ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation> > doubleAnnotations;
101  std::vector<ome::compat::shared_ptr<ome::xml::model::CommentAnnotation> > commentAnnotations;
103  std::vector<ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation> > booleanAnnotations;
105  std::vector<ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation> > timestampAnnotations;
107  std::vector<ome::compat::shared_ptr<ome::xml::model::TagAnnotation> > tagAnnotations;
109  std::vector<ome::compat::shared_ptr<ome::xml::model::TermAnnotation> > termAnnotations;
110 
111  public:
114 
121 
123  virtual
125 
126 
127 
142  static ome::compat::shared_ptr< StructuredAnnotations>
143  create(const common::xml::dom::Element& element,
145 
146  // Documented in superclass.
147  const std::string&
148  elementName() const;
149 
150  // Documented in superclass.
151  bool
152  validElementName(const std::string& name) const;
153 
154 
155  // -- OMEModelObject API methods --
156 
158  virtual void
159  update(const common::xml::dom::Element& element,
161 
162  public:
163  // -- StructuredAnnotations API methods --
164 
166  bool
167  link (ome::compat::shared_ptr<Reference>& reference,
168  ome::compat::shared_ptr< ome::xml::model::OMEModelObject>& object);
169 
175  std::vector<ome::compat::shared_ptr<ome::xml::model::XMLAnnotation> >::size_type
176  sizeOfXMLAnnotationList () const;
177 
184  std::vector<ome::compat::shared_ptr<ome::xml::model::XMLAnnotation> >&
186 
193  const std::vector<ome::compat::shared_ptr<ome::xml::model::XMLAnnotation> >&
194  getXMLAnnotationList () const;
195 
203  ome::compat::shared_ptr<ome::xml::model::XMLAnnotation>&
204  getXMLAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::XMLAnnotation> >::size_type index);
205 
213  const ome::compat::shared_ptr<ome::xml::model::XMLAnnotation>&
214  getXMLAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::XMLAnnotation> >::size_type index) const;
215 
223  void
224  setXMLAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::XMLAnnotation> >::size_type index,
225  ome::compat::shared_ptr<ome::xml::model::XMLAnnotation>& xmlAnnotation);
226 
235  void
236  addXMLAnnotation (ome::compat::shared_ptr<ome::xml::model::XMLAnnotation>& xmlAnnotation);
237 
247  void
248  removeXMLAnnotation (ome::compat::shared_ptr<ome::xml::model::XMLAnnotation>& xmlAnnotation);
249 
255  std::vector<ome::compat::shared_ptr<ome::xml::model::FileAnnotation> >::size_type
256  sizeOfFileAnnotationList () const;
257 
264  std::vector<ome::compat::shared_ptr<ome::xml::model::FileAnnotation> >&
266 
273  const std::vector<ome::compat::shared_ptr<ome::xml::model::FileAnnotation> >&
274  getFileAnnotationList () const;
275 
283  ome::compat::shared_ptr<ome::xml::model::FileAnnotation>&
284  getFileAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::FileAnnotation> >::size_type index);
285 
293  const ome::compat::shared_ptr<ome::xml::model::FileAnnotation>&
294  getFileAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::FileAnnotation> >::size_type index) const;
295 
303  void
304  setFileAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::FileAnnotation> >::size_type index,
305  ome::compat::shared_ptr<ome::xml::model::FileAnnotation>& fileAnnotation);
306 
315  void
316  addFileAnnotation (ome::compat::shared_ptr<ome::xml::model::FileAnnotation>& fileAnnotation);
317 
327  void
328  removeFileAnnotation (ome::compat::shared_ptr<ome::xml::model::FileAnnotation>& fileAnnotation);
329 
335  std::vector<ome::compat::shared_ptr<ome::xml::model::ListAnnotation> >::size_type
336  sizeOfListAnnotationList () const;
337 
344  std::vector<ome::compat::shared_ptr<ome::xml::model::ListAnnotation> >&
346 
353  const std::vector<ome::compat::shared_ptr<ome::xml::model::ListAnnotation> >&
354  getListAnnotationList () const;
355 
363  ome::compat::shared_ptr<ome::xml::model::ListAnnotation>&
364  getListAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::ListAnnotation> >::size_type index);
365 
373  const ome::compat::shared_ptr<ome::xml::model::ListAnnotation>&
374  getListAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::ListAnnotation> >::size_type index) const;
375 
383  void
384  setListAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::ListAnnotation> >::size_type index,
385  ome::compat::shared_ptr<ome::xml::model::ListAnnotation>& listAnnotation);
386 
395  void
396  addListAnnotation (ome::compat::shared_ptr<ome::xml::model::ListAnnotation>& listAnnotation);
397 
407  void
408  removeListAnnotation (ome::compat::shared_ptr<ome::xml::model::ListAnnotation>& listAnnotation);
409 
415  std::vector<ome::compat::shared_ptr<ome::xml::model::LongAnnotation> >::size_type
416  sizeOfLongAnnotationList () const;
417 
424  std::vector<ome::compat::shared_ptr<ome::xml::model::LongAnnotation> >&
426 
433  const std::vector<ome::compat::shared_ptr<ome::xml::model::LongAnnotation> >&
434  getLongAnnotationList () const;
435 
443  ome::compat::shared_ptr<ome::xml::model::LongAnnotation>&
444  getLongAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::LongAnnotation> >::size_type index);
445 
453  const ome::compat::shared_ptr<ome::xml::model::LongAnnotation>&
454  getLongAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::LongAnnotation> >::size_type index) const;
455 
463  void
464  setLongAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::LongAnnotation> >::size_type index,
465  ome::compat::shared_ptr<ome::xml::model::LongAnnotation>& longAnnotation);
466 
475  void
476  addLongAnnotation (ome::compat::shared_ptr<ome::xml::model::LongAnnotation>& longAnnotation);
477 
487  void
488  removeLongAnnotation (ome::compat::shared_ptr<ome::xml::model::LongAnnotation>& longAnnotation);
489 
495  std::vector<ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation> >::size_type
497 
504  std::vector<ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation> >&
506 
513  const std::vector<ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation> >&
514  getDoubleAnnotationList () const;
515 
523  ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation>&
524  getDoubleAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation> >::size_type index);
525 
533  const ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation>&
534  getDoubleAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation> >::size_type index) const;
535 
543  void
544  setDoubleAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation> >::size_type index,
545  ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation>& doubleAnnotation);
546 
555  void
556  addDoubleAnnotation (ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation>& doubleAnnotation);
557 
567  void
568  removeDoubleAnnotation (ome::compat::shared_ptr<ome::xml::model::DoubleAnnotation>& doubleAnnotation);
569 
575  std::vector<ome::compat::shared_ptr<ome::xml::model::CommentAnnotation> >::size_type
577 
584  std::vector<ome::compat::shared_ptr<ome::xml::model::CommentAnnotation> >&
586 
593  const std::vector<ome::compat::shared_ptr<ome::xml::model::CommentAnnotation> >&
594  getCommentAnnotationList () const;
595 
603  ome::compat::shared_ptr<ome::xml::model::CommentAnnotation>&
604  getCommentAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::CommentAnnotation> >::size_type index);
605 
613  const ome::compat::shared_ptr<ome::xml::model::CommentAnnotation>&
614  getCommentAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::CommentAnnotation> >::size_type index) const;
615 
623  void
624  setCommentAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::CommentAnnotation> >::size_type index,
625  ome::compat::shared_ptr<ome::xml::model::CommentAnnotation>& commentAnnotation);
626 
635  void
636  addCommentAnnotation (ome::compat::shared_ptr<ome::xml::model::CommentAnnotation>& commentAnnotation);
637 
647  void
648  removeCommentAnnotation (ome::compat::shared_ptr<ome::xml::model::CommentAnnotation>& commentAnnotation);
649 
655  std::vector<ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation> >::size_type
657 
664  std::vector<ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation> >&
666 
673  const std::vector<ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation> >&
674  getBooleanAnnotationList () const;
675 
683  ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation>&
684  getBooleanAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation> >::size_type index);
685 
693  const ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation>&
694  getBooleanAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation> >::size_type index) const;
695 
703  void
704  setBooleanAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation> >::size_type index,
705  ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation>& booleanAnnotation);
706 
715  void
716  addBooleanAnnotation (ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation>& booleanAnnotation);
717 
727  void
728  removeBooleanAnnotation (ome::compat::shared_ptr<ome::xml::model::BooleanAnnotation>& booleanAnnotation);
729 
735  std::vector<ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation> >::size_type
737 
744  std::vector<ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation> >&
746 
753  const std::vector<ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation> >&
755 
763  ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation>&
764  getTimestampAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation> >::size_type index);
765 
773  const ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation>&
774  getTimestampAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation> >::size_type index) const;
775 
783  void
784  setTimestampAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation> >::size_type index,
785  ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation>& timestampAnnotation);
786 
795  void
796  addTimestampAnnotation (ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation>& timestampAnnotation);
797 
807  void
808  removeTimestampAnnotation (ome::compat::shared_ptr<ome::xml::model::TimestampAnnotation>& timestampAnnotation);
809 
815  std::vector<ome::compat::shared_ptr<ome::xml::model::TagAnnotation> >::size_type
816  sizeOfTagAnnotationList () const;
817 
824  std::vector<ome::compat::shared_ptr<ome::xml::model::TagAnnotation> >&
826 
833  const std::vector<ome::compat::shared_ptr<ome::xml::model::TagAnnotation> >&
834  getTagAnnotationList () const;
835 
843  ome::compat::shared_ptr<ome::xml::model::TagAnnotation>&
844  getTagAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::TagAnnotation> >::size_type index);
845 
853  const ome::compat::shared_ptr<ome::xml::model::TagAnnotation>&
854  getTagAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::TagAnnotation> >::size_type index) const;
855 
863  void
864  setTagAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::TagAnnotation> >::size_type index,
865  ome::compat::shared_ptr<ome::xml::model::TagAnnotation>& tagAnnotation);
866 
875  void
876  addTagAnnotation (ome::compat::shared_ptr<ome::xml::model::TagAnnotation>& tagAnnotation);
877 
887  void
888  removeTagAnnotation (ome::compat::shared_ptr<ome::xml::model::TagAnnotation>& tagAnnotation);
889 
895  std::vector<ome::compat::shared_ptr<ome::xml::model::TermAnnotation> >::size_type
896  sizeOfTermAnnotationList () const;
897 
904  std::vector<ome::compat::shared_ptr<ome::xml::model::TermAnnotation> >&
906 
913  const std::vector<ome::compat::shared_ptr<ome::xml::model::TermAnnotation> >&
914  getTermAnnotationList () const;
915 
923  ome::compat::shared_ptr<ome::xml::model::TermAnnotation>&
924  getTermAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::TermAnnotation> >::size_type index);
925 
933  const ome::compat::shared_ptr<ome::xml::model::TermAnnotation>&
934  getTermAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::TermAnnotation> >::size_type index) const;
935 
943  void
944  setTermAnnotation (std::vector<ome::compat::shared_ptr<ome::xml::model::TermAnnotation> >::size_type index,
945  ome::compat::shared_ptr<ome::xml::model::TermAnnotation>& termAnnotation);
946 
955  void
956  addTermAnnotation (ome::compat::shared_ptr<ome::xml::model::TermAnnotation>& termAnnotation);
957 
967  void
968  removeTermAnnotation (ome::compat::shared_ptr<ome::xml::model::TermAnnotation>& termAnnotation);
969 
970 
973  asXMLElement (common::xml::dom::Document& document) const;
974 
975 
976  protected:
977  // Documented in base class.
980  common::xml::dom::Element& element) const;
981 
982  public:
983  // Documented in superclass.
984  const std::string&
985  getXMLNamespace() const;
986  };
987 
988  }
989  }
990 }
991 
992 #endif // OME_XML_MODEL_STRUCTUREDANNOTATIONS_H
993 
994 /*
995  * Local Variables:
996  * mode:C++
997  * End:
998  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
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.
Definition: StructuredAnnotations.cpp:441
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: StructuredAnnotations.cpp:933
void removeCommentAnnotation(ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > &commentAnnotation)
Remove CommentAnnotation.
Definition: StructuredAnnotations.cpp:690
ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > & getDoubleAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type index)
Get DoubleAnnotation.
Definition: StructuredAnnotations.cpp:603
std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > > & getDoubleAnnotationList()
Get the DoubleAnnotation list.
Definition: StructuredAnnotations.cpp:591
ome::compat::shared_ptr< ome::xml::model::TagAnnotation > & getTagAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type index)
Get TagAnnotation.
Definition: StructuredAnnotations.cpp:835
const std::string & elementName() const
Get the element name of this model object.
Definition: StructuredAnnotations.cpp:189
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.
Definition: StructuredAnnotations.cpp:905
void addXMLAnnotation(ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > &xmlAnnotation)
Add XMLAnnotation.
Definition: StructuredAnnotations.cpp:392
std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > > listAnnotations
ListAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:95
ome::compat::shared_ptr< ome::xml::model::FileAnnotation > & getFileAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type index)
Get FileAnnotation.
Definition: StructuredAnnotations.cpp:429
StructuredAnnotations model object.
Definition: StructuredAnnotations.h:87
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.
Definition: StructuredAnnotations.cpp:847
ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > & getTimestampAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type index)
Get TimestampAnnotation.
Definition: StructuredAnnotations.cpp:777
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.
Definition: StructuredAnnotations.cpp:615
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.
Definition: StructuredAnnotations.cpp:338
void removeTagAnnotation(ome::compat::shared_ptr< ome::xml::model::TagAnnotation > &tagAnnotation)
Remove TagAnnotation.
Definition: StructuredAnnotations.cpp:864
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: StructuredAnnotations.cpp:1115
DOM Document wrapper.
Definition: Document.h:82
std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > > & getFileAnnotationList()
Get the FileAnnotation list.
Definition: StructuredAnnotations.cpp:417
DOM Element wrapper.
Definition: Element.h:66
std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > > & getXMLAnnotationList()
Get the XMLAnnotation list.
Definition: StructuredAnnotations.cpp:359
std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > >::size_type sizeOfFileAnnotationList() const
Get size of linked FileAnnotation list.
Definition: StructuredAnnotations.cpp:411
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
void addCommentAnnotation(ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > &commentAnnotation)
Add CommentAnnotation.
Definition: StructuredAnnotations.cpp:682
ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > & getCommentAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type index)
Get CommentAnnotation.
Definition: StructuredAnnotations.cpp:661
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: StructuredAnnotations.cpp:196
std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type sizeOfListAnnotationList() const
Get size of linked ListAnnotation list.
Definition: StructuredAnnotations.cpp:469
void addTimestampAnnotation(ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > &timestampAnnotation)
Add TimestampAnnotation.
Definition: StructuredAnnotations.cpp:798
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.
Definition: StructuredAnnotations.cpp:789
void removeLongAnnotation(ome::compat::shared_ptr< ome::xml::model::LongAnnotation > &longAnnotation)
Remove LongAnnotation.
Definition: StructuredAnnotations.cpp:574
std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > >::size_type sizeOfDoubleAnnotationList() const
Get size of linked DoubleAnnotation list.
Definition: StructuredAnnotations.cpp:585
std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > > & getBooleanAnnotationList()
Get the BooleanAnnotation list.
Definition: StructuredAnnotations.cpp:707
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
ome::compat::shared_ptr< ome::xml::model::TermAnnotation > & getTermAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type index)
Get TermAnnotation.
Definition: StructuredAnnotations.cpp:893
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.
Definition: StructuredAnnotations.cpp:383
ome::compat::shared_ptr< ome::xml::model::LongAnnotation > & getLongAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type index)
Get LongAnnotation.
Definition: StructuredAnnotations.cpp:545
std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > >::size_type sizeOfCommentAnnotationList() const
Get size of linked CommentAnnotation list.
Definition: StructuredAnnotations.cpp:643
void addDoubleAnnotation(ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > &doubleAnnotation)
Add DoubleAnnotation.
Definition: StructuredAnnotations.cpp:624
ome::compat::shared_ptr< ome::xml::model::ListAnnotation > & getListAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > >::size_type index)
Get ListAnnotation.
Definition: StructuredAnnotations.cpp:487
std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > > timestampAnnotations
TimestampAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:105
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.
Definition: StructuredAnnotations.cpp:499
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.
Definition: StructuredAnnotations.cpp:673
void addFileAnnotation(ome::compat::shared_ptr< ome::xml::model::FileAnnotation > &fileAnnotation)
Add FileAnnotation.
Definition: StructuredAnnotations.cpp:450
std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > > longAnnotations
LongAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:97
std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > > xmlAnnotations
XMLAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:91
std::vector< ome::compat::shared_ptr< ome::xml::model::ListAnnotation > > & getListAnnotationList()
Get the ListAnnotation list.
Definition: StructuredAnnotations.cpp:475
void removeBooleanAnnotation(ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > &booleanAnnotation)
Remove BooleanAnnotation.
Definition: StructuredAnnotations.cpp:748
StructuredAnnotations()
Default constructor.
Definition: StructuredAnnotations.cpp:138
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.
Definition: StructuredAnnotations.cpp:940
static ome::compat::shared_ptr< StructuredAnnotations > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a StructuredAnnotations model object from DOM element.
Definition: StructuredAnnotations.cpp:180
std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > > & getTagAnnotationList()
Get the TagAnnotation list.
Definition: StructuredAnnotations.cpp:823
void removeFileAnnotation(ome::compat::shared_ptr< ome::xml::model::FileAnnotation > &fileAnnotation)
Remove FileAnnotation.
Definition: StructuredAnnotations.cpp:458
ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > & getBooleanAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type index)
Get BooleanAnnotation.
Definition: StructuredAnnotations.cpp:719
std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > >::size_type sizeOfTermAnnotationList() const
Get size of linked TermAnnotation list.
Definition: StructuredAnnotations.cpp:875
std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > >::size_type sizeOfTagAnnotationList() const
Get size of linked TagAnnotation list.
Definition: StructuredAnnotations.cpp:817
void addTagAnnotation(ome::compat::shared_ptr< ome::xml::model::TagAnnotation > &tagAnnotation)
Add TagAnnotation.
Definition: StructuredAnnotations.cpp:856
void removeDoubleAnnotation(ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > &doubleAnnotation)
Remove DoubleAnnotation.
Definition: StructuredAnnotations.cpp:632
std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > > termAnnotations
TermAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:109
std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > >::size_type sizeOfTimestampAnnotationList() const
Get size of linked TimestampAnnotation list.
Definition: StructuredAnnotations.cpp:759
void addBooleanAnnotation(ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > &booleanAnnotation)
Add BooleanAnnotation.
Definition: StructuredAnnotations.cpp:740
std::vector< ome::compat::shared_ptr< ome::xml::model::TermAnnotation > > & getTermAnnotationList()
Get the TermAnnotation list.
Definition: StructuredAnnotations.cpp:881
void addTermAnnotation(ome::compat::shared_ptr< ome::xml::model::TermAnnotation > &termAnnotation)
Add TermAnnotation.
Definition: StructuredAnnotations.cpp:914
void removeXMLAnnotation(ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > &xmlAnnotation)
Remove XMLAnnotation.
Definition: StructuredAnnotations.cpp:400
void removeListAnnotation(ome::compat::shared_ptr< ome::xml::model::ListAnnotation > &listAnnotation)
Remove ListAnnotation.
Definition: StructuredAnnotations.cpp:516
virtual void update(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Update the object hierarchy recursively from an XML DOM tree.
Definition: StructuredAnnotations.cpp:205
void removeTermAnnotation(ome::compat::shared_ptr< ome::xml::model::TermAnnotation > &termAnnotation)
Remove TermAnnotation.
Definition: StructuredAnnotations.cpp:922
std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > >::size_type sizeOfLongAnnotationList() const
Get size of linked LongAnnotation list.
Definition: StructuredAnnotations.cpp:527
std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > >::size_type sizeOfBooleanAnnotationList() const
Get size of linked BooleanAnnotation list.
Definition: StructuredAnnotations.cpp:701
void addLongAnnotation(ome::compat::shared_ptr< ome::xml::model::LongAnnotation > &longAnnotation)
Add LongAnnotation.
Definition: StructuredAnnotations.cpp:566
std::vector< ome::compat::shared_ptr< ome::xml::model::FileAnnotation > > fileAnnotations
FileAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:93
void removeTimestampAnnotation(ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > &timestampAnnotation)
Remove TimestampAnnotation.
Definition: StructuredAnnotations.cpp:806
std::vector< ome::compat::shared_ptr< ome::xml::model::LongAnnotation > > & getLongAnnotationList()
Get the LongAnnotation list.
Definition: StructuredAnnotations.cpp:533
std::vector< ome::compat::shared_ptr< ome::xml::model::DoubleAnnotation > > doubleAnnotations
DoubleAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:99
void addListAnnotation(ome::compat::shared_ptr< ome::xml::model::ListAnnotation > &listAnnotation)
Add ListAnnotation.
Definition: StructuredAnnotations.cpp:508
std::vector< ome::compat::shared_ptr< ome::xml::model::TagAnnotation > > tagAnnotations
TagAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:107
ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > & getXMLAnnotation(std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type index)
Get XMLAnnotation.
Definition: StructuredAnnotations.cpp:371
std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > > & getCommentAnnotationList()
Get the CommentAnnotation list.
Definition: StructuredAnnotations.cpp:649
Boost.Log compatibility.
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.
Definition: StructuredAnnotations.cpp:557
std::vector< ome::compat::shared_ptr< ome::xml::model::TimestampAnnotation > > & getTimestampAnnotationList()
Get the TimestampAnnotation list.
Definition: StructuredAnnotations.cpp:765
virtual ~StructuredAnnotations()
Destructor.
Definition: StructuredAnnotations.cpp:175
std::vector< ome::compat::shared_ptr< ome::xml::model::BooleanAnnotation > > booleanAnnotations
BooleanAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:103
std::vector< ome::compat::shared_ptr< ome::xml::model::XMLAnnotation > >::size_type sizeOfXMLAnnotationList() const
Get size of linked XMLAnnotation list.
Definition: StructuredAnnotations.cpp:353
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.
Definition: StructuredAnnotations.cpp:731
Xerces-C modern C++ wrapper.
Definition: Base.h:53
std::vector< ome::compat::shared_ptr< ome::xml::model::CommentAnnotation > > commentAnnotations
CommentAnnotation property (occurs more than once)
Definition: StructuredAnnotations.h:101