File Information
Library: XSD/Types
Package: XSDTypes
Header: Poco/XSD/Types/AnnotatedObject.h
Description
AnnotatedObject is the abstract super class for all objects that can store an annotation internally.
Inheritance
Direct Base Classes: Visitable
All Base Classes: Poco::RefCountedObject, Visitable
Known Derived Classes: ElementTypeRef, ListTypeRef, OrderContent, SimpleRestrictionInlineType, AttributeContent, Binding, CollectionContent, List, Schema, Any, All, AttributeRef, Order, SimpleTypeInheritance, AbstractAttributeGroup, ElementRef, Group, Operation, Type, Attribute, ComplexType, Content, Message, PortType, Sequence, Union, AbstractElementImpl, AbstractGroup, AttributeGroup, AttributeGroupRef, AttributeTypeRef, InheritanceInfo, Definitions, Element, SimpleType, ElementImpl, Service, AbstractAttribute, AbstractList, AnyAttribute, GroupRef, Choice, Notation, SimpleRestriction
Member Summary
Member Functions: addAnnotation, getAnnotations
Inherited Functions: accept, duplicate, id, referenceCount, release
Types Aliases
Annotations
using Annotations = std::vector < Annotation >;
Ptr
using Ptr = Poco::AutoPtr < AnnotatedObject >;
Constructors
AnnotatedObject
Creates the AnnotatedObject.
AnnotatedObject
AnnotatedObject(
const std::string & id
);
Creates the AnnotatedObject.
AnnotatedObject
AnnotatedObject(
const std::string & id,
const Annotation & ann
);
Creates the AnnotatedObject.
Destructor
~AnnotatedObject
virtual ~AnnotatedObject();
Destroys the AnnotatedObject.
Member Functions
addAnnotation
void addAnnotation(
const Annotation & ann
);
Adds the annotation at the object.
getAnnotations
const Annotations & getAnnotations() const;
Returns the annotation from the object.