te::xsd::Redefine Class Reference

It models a XML Schema redefine. More...

#include <Redefine.h>

Inheritance diagram for te::xsd::Redefine:
te::xsd::Identifiable

Public Member Functions

void addAnnotation (Annotation *ann)
 It inserts an annotation into the redefine. More...
 
void addAttributeGroup (AttributeGroup *ag)
 It inserts an attribute group into the redefine. More...
 
void addGroup (Group *g)
 It inserts a group into the redefine. More...
 
void addType (Type *t)
 It inserts a type into the redefine. More...
 
const boost::ptr_vector< Annotation > & getAnnotations () const
 It returns the list of annotations at redefine element. More...
 
const boost::ptr_vector< AttributeGroup > & getAttributeGroups () const
 It returns the list of attribute group declarations at redefine element. More...
 
const boost::ptr_vector< Group > & getGroups () const
 It returns the list of group declarations at redefine element. 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 redefined schema. More...
 
const boost::ptr_vector< Type > & getTypes () const
 It returns the list of simple and complex types at redefine element. More...
 
Redefineoperator= (const Redefine &rhs)
 Assignment operator. More...
 
 Redefine (const std::string &schemaLocation, std::string *id=0)
 Constructor. More...
 
 Redefine (const Redefine &rhs)
 Copy constructor. More...
 
void setId (std::string *id)
 it sets the id. More...
 
void setSchemaLocation (const std::string &schemaLocation)
 It sets the location of the redefined schema. More...
 
 ~Redefine ()
 Destructor. More...
 

Private Attributes

boost::ptr_vector< Annotationm_annotationVec
 The list of annotations at redefine element. (Optional) More...
 
boost::ptr_vector< AttributeGroupm_attributeGroupVec
 The list of attribute group declarations at redefine element. (Optional) More...
 
boost::ptr_vector< Groupm_groupVec
 The list of group declarations at redefine element. (Optional) More...
 
std::string m_schemaLocation
 It specifies a URI to the location of a schema document. (Required) More...
 
boost::ptr_vector< Typem_typeVec
 The list of simple and complex types at redefine element. (Optional) More...
 

Detailed Description

It models a XML Schema redefine.

Note
Parent elements: schema.

Definition at line 52 of file Redefine.h.

Constructor & Destructor Documentation

te::xsd::Redefine::Redefine ( const std::string &  schemaLocation,
std::string *  id = 0 
)

Constructor.

Parameters
schemaLocationIt specifies the URI to the location of a schema document.
idIt specifies a unique ID for the element. It can be a NULL value.
te::xsd::Redefine::Redefine ( const Redefine rhs)

Copy constructor.

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

Destructor.

Member Function Documentation

void te::xsd::Redefine::addAnnotation ( Annotation ann)

It inserts an annotation into the redefine.

Parameters
annSome annotation.
Note
The redefine will take the ownership of the given pointer.
void te::xsd::Redefine::addAttributeGroup ( AttributeGroup ag)

It inserts an attribute group into the redefine.

Parameters
agSome attribute group.
Note
The redefine will take the ownership of the given pointer.
void te::xsd::Redefine::addGroup ( Group g)

It inserts a group into the redefine.

Parameters
gSome group.
Note
The redefine will take the ownership of the given pointer.
void te::xsd::Redefine::addType ( Type t)

It inserts a type into the redefine.

Parameters
tSome type.
Note
The redefine will take the ownership of the given pointer.
const boost::ptr_vector<Annotation>& te::xsd::Redefine::getAnnotations ( ) const

It returns the list of annotations at redefine element.

Returns
The list of annotations at redefine element.
const boost::ptr_vector<AttributeGroup>& te::xsd::Redefine::getAttributeGroups ( ) const

It returns the list of attribute group declarations at redefine element.

Returns
The list of attribute group declarations at redefine element.
const boost::ptr_vector<Group>& te::xsd::Redefine::getGroups ( ) const

It returns the list of group declarations at redefine element.

Returns
The list of group declarations at redefine element.
std::string* te::xsd::Identifiable::getId ( ) const
inherited

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

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

It returns the location of the redefined schema.

Returns
The schema location.
const boost::ptr_vector<Type>& te::xsd::Redefine::getTypes ( ) const

It returns the list of simple and complex types at redefine element.

Returns
The list of simple and complex types at redefine element.
Redefine& te::xsd::Redefine::operator= ( const Redefine rhs)

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.
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::Redefine::setSchemaLocation ( const std::string &  schemaLocation)

It sets the location of the redefined schema.

Parameters
schemaLocationThe schema location.

Member Data Documentation

boost::ptr_vector<Annotation> te::xsd::Redefine::m_annotationVec
private

The list of annotations at redefine element. (Optional)

Definition at line 168 of file Redefine.h.

boost::ptr_vector<AttributeGroup> te::xsd::Redefine::m_attributeGroupVec
private

The list of attribute group declarations at redefine element. (Optional)

Definition at line 171 of file Redefine.h.

boost::ptr_vector<Group> te::xsd::Redefine::m_groupVec
private

The list of group declarations at redefine element. (Optional)

Definition at line 170 of file Redefine.h.

std::string te::xsd::Redefine::m_schemaLocation
private

It specifies a URI to the location of a schema document. (Required)

Definition at line 167 of file Redefine.h.

boost::ptr_vector<Type> te::xsd::Redefine::m_typeVec
private

The list of simple and complex types at redefine element. (Optional)

Definition at line 169 of file Redefine.h.


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