te::xsd::Include Class Reference

It models a XML Schema include. More...

#include <Include.h>

Inheritance diagram for te::xsd::Include:
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...
 
const std::string & getSchemaLocation () const
 It returns the location of the referenced schema. More...
 
 Include (const std::string &schemaLocation, Annotation *ann=0, std::string *id=0)
 Constructor. More...
 
 Include (const Include &rhs)
 Copy constructor. More...
 
Includeoperator= (const Include &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 setSchemaLocation (const std::string &schemaLocation)
 It sets the location of the referenced schema. More...
 
 ~Include ()
 Destructor. More...
 

Private Attributes

std::string m_schemaLocation
 It specifies the URI to the schema to include in the target namespace of the containing schema. (Required) More...
 

Detailed Description

It models a XML Schema include.

See also
Annotated, Identifiable
Note
Parent elements: schema.

Definition at line 46 of file Include.h.

Constructor & Destructor Documentation

te::xsd::Include::Include ( const std::string &  schemaLocation,
Annotation ann = 0,
std::string *  id = 0 
)

Constructor.

Parameters
idIt specifies a unique ID for the element. It can be a NULL value.
schemaLocationIt specifies the URI to the schema to include in the target namespace of the containing schema.
te::xsd::Include::Include ( const Include rhs)

Copy constructor.

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

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.

const std::string& te::xsd::Include::getSchemaLocation ( ) const

It returns the location of the referenced schema.

Returns
The schema location.
Include& te::xsd::Include::operator= ( const Include 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::Include::setSchemaLocation ( const std::string &  schemaLocation)

It sets the location of the referenced schema.

Parameters
schemaLocationThe schema location.

Member Data Documentation

std::string te::xsd::Include::m_schemaLocation
private

It specifies the URI to the schema to include in the target namespace of the containing schema. (Required)

Definition at line 97 of file Include.h.


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