te::xsd::Annotated Class Reference

A base class for XSD classes that may allow annotation. More...

#include <Annotated.h>

Inheritance diagram for te::xsd::Annotated:
te::xsd::All te::xsd::Any te::xsd::AnyAttribute te::xsd::Attribute te::xsd::AttributeGroup te::xsd::Choice te::xsd::ComplexContent te::xsd::ComplexType te::xsd::Element te::xsd::Extension te::xsd::Field te::xsd::Group te::xsd::IdentityConstraint te::xsd::Import te::xsd::Include te::xsd::Notation te::xsd::Restriction4ComplexContent te::xsd::Restriction4SimpleContent te::xsd::Selector te::xsd::Sequence te::xsd::SimpleContent te::xsd::SimpleType te::xsd::SimpleTypeConstructor

Public Member Functions

AnnotationgetAnnotation () const
 It returns the associated annotation. More...
 
void setAnnotation (Annotation *ann)
 It sets the associated annotation. More...
 

Protected Member Functions

 Annotated (Annotation *ann=0)
 Constructor. More...
 
 Annotated (const Annotated &rhs)
 Copy constructor. More...
 
Annotatedoperator= (const Annotated &rhs)
 Assignment operator. More...
 
 ~Annotated ()
 Destructor. More...
 

Private Attributes

Annotationm_annotation
 Annotation for human reading or machine consumption. (Optional) More...
 

Detailed Description

A base class for XSD classes that may allow annotation.

See also
Annotation, Attribute

Definition at line 49 of file Annotated.h.

Constructor & Destructor Documentation

te::xsd::Annotated::Annotated ( Annotation ann = 0)
protected

Constructor.

Parameters
annThe annotation to be associated to the object.
Note
The Annotation object will take the ownership of the informed pointer.
te::xsd::Annotated::Annotated ( const Annotated rhs)
protected

Copy constructor.

Parameters
rhsRight-hand-side object.
te::xsd::Annotated::~Annotated ( )
protected

Destructor.

Member Function Documentation

Annotation* te::xsd::Annotated::getAnnotation ( ) const

It returns the associated annotation.

Returns
The associated annotation.
Annotated& te::xsd::Annotated::operator= ( const Annotated rhs)
protected

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.
void te::xsd::Annotated::setAnnotation ( Annotation ann)

It sets the associated annotation.

Parameters
annThe annotation to be associated to the object. The annotated class will take the ownership of the given pointer.

Member Data Documentation

Annotation* te::xsd::Annotated::m_annotation
private

Annotation for human reading or machine consumption. (Optional)

Definition at line 99 of file Annotated.h.


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