te::xsd::Import Class Reference

It models a XML Schema import. More...

#include <Import.h>

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

Private Attributes

std::string * m_namespace
 It specifies the URI of the namespace to import. (Optional) More...
 
std::string * m_schemaLocation
 It specifies the URI to the schema for the imported namespace. (Optional) More...
 

Detailed Description

It models a XML Schema import.

See also
Annotated, Identifiable

Definition at line 47 of file Import.h.

Constructor & Destructor Documentation

te::xsd::Import::Import ( std::string *  ns,
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.
nsThe URI of the namespace to import.
schemaLocationThe URI to the schema for the imported namespace.
te::xsd::Import::Import ( const Import rhs)

Copy constructor.

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

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::Import::getNamespace ( ) const

It returns the namespace URI of the imported schema.

Returns
The namespace URI.
std::string* te::xsd::Import::getSchemaLocation ( ) const

It returns the location of the referenced schema.

Returns
The schema location.
Import& te::xsd::Import::operator= ( const Import 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::Import::setNamespace ( std::string *  ns)

It sets the namespace URI of the imported schema.

Parameters
nsA namespace URI value.
Note
The Import object will take the ownership of the given pointer.
void te::xsd::Import::setSchemaLocation ( std::string *  schemaLocation)

It sets the location of the referenced schema.

Parameters
schemaLocationA schema location.
Note
The Import object will take the ownership of the given pointer.

Member Data Documentation

std::string* te::xsd::Import::m_namespace
private

It specifies the URI of the namespace to import. (Optional)

Definition at line 117 of file Import.h.

std::string* te::xsd::Import::m_schemaLocation
private

It specifies the URI to the schema for the imported namespace. (Optional)

Definition at line 118 of file Import.h.


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