te::xsd::Notation Class Reference

This class models a notation element from a XML Schema. More...

#include <Notation.h>

Inheritance diagram for te::xsd::Notation:
te::xsd::Identifiable te::xsd::Annotated

Public Member Functions

AnnotationgetAnnotation () const
 It returns the associated annotation. More...
 
std::string * getId () const
 It returns a pointer (may be NULL) to the object id. More...
 
std::string * getName () const
 It returns the name of this element. More...
 
std::string * getPublic () const
 It returns the URI corresponding to the public identifier. More...
 
std::string * getSystem () const
 It returns the URI corresponding to the system identifier. More...
 
 Notation (std::string *name, std::string *pub, Annotation *ann=0, std::string *id=0)
 Constructor. More...
 
 Notation (const Notation &rhs)
 Copy constructor. More...
 
Notationoperator= (const Notation &rhs)
 Assignment operator. More...
 
void setAnnotation (Annotation *ann)
 It sets the associated annotation. More...
 
void setId (std::string *id)
 it sets the id. More...
 
void setName (std::string *name)
 It sets the name of this element. More...
 
void setPublic (std::string *pub)
 It sets the URI corresponding to the public identifier. More...
 
void setSystem (std::string *sys)
 It sets the URI corresponding to the system identifier. More...
 
 ~Notation ()
 Destructor. More...
 

Private Attributes

std::string * m_name
 It specifies a name for the element. (Required) More...
 
std::string * m_public
 It specifies a URI corresponding to the public identifier. (Required) More...
 
std::string * m_system
 It specifies a URI corresponding to the system identifier. (Optional) More...
 

Detailed Description

This class models a notation element from a XML Schema.

Note
Parent elements: schema.

Definition at line 44 of file Notation.h.

Constructor & Destructor Documentation

te::xsd::Notation::Notation ( std::string *  name,
std::string *  pub,
Annotation ann = 0,
std::string *  id = 0 
)

Constructor.

Parameters
idIt specifies a unique ID for the element. It can be a NULL value.
nameIt specifies a name for the element. It can not be a NULL value.
pubIt specifies a URI corresponding to the public identifier. It can not be a NULL value.
Note
The Notation object will take the ownership of the pointers id, name and pub.
te::xsd::Notation::Notation ( const Notation rhs)

Copy constructor.

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

Destructor.

Member Function Documentation

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

It returns the associated annotation.

Returns
The associated annotation.
std::string* te::xsd::Identifiable::getId ( ) const
inherited

It returns a pointer (may be NULL) to the object id.

std::string* te::xsd::Notation::getName ( ) const

It returns the name of this element.

Returns
The name of this element.
std::string* te::xsd::Notation::getPublic ( ) const

It returns the URI corresponding to the public identifier.

Returns
The URI corresponding to the public identifier.
std::string* te::xsd::Notation::getSystem ( ) const

It returns the URI corresponding to the system identifier.

Returns
The URI corresponding to the system identifier.
Notation& te::xsd::Notation::operator= ( const Notation rhs)

Assignment operator.

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

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.
void te::xsd::Identifiable::setId ( std::string *  id)
inherited

it sets the id.

Parameters
idThe id to be associated to the object. It will take the ownership of the given string.
void te::xsd::Notation::setName ( std::string *  name)

It sets the name of this element.

Parameters
nameThe name of this element.
Note
The Notation object will take the ownership of the given pointer.
void te::xsd::Notation::setPublic ( std::string *  pub)

It sets the URI corresponding to the public identifier.

Parameters
pubThe URI corresponding to the public identifier.
Note
The Notation object will take the ownership of the given pointer.
void te::xsd::Notation::setSystem ( std::string *  sys)

It sets the URI corresponding to the system identifier.

Parameters
sysThe URI corresponding to the system identifier.
Note
The Notation object will take the ownership of the given pointer.

Member Data Documentation

std::string* te::xsd::Notation::m_name
private

It specifies a name for the element. (Required)

Definition at line 132 of file Notation.h.

std::string* te::xsd::Notation::m_public
private

It specifies a URI corresponding to the public identifier. (Required)

Definition at line 133 of file Notation.h.

std::string* te::xsd::Notation::m_system
private

It specifies a URI corresponding to the system identifier. (Optional)

Definition at line 134 of file Notation.h.


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