It models a XML Schema redefine. More...
#include <Redefine.h>
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... | |
Redefine & | operator= (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< Annotation > | m_annotationVec |
The list of annotations at redefine element. (Optional) More... | |
boost::ptr_vector< AttributeGroup > | m_attributeGroupVec |
The list of attribute group declarations at redefine element. (Optional) More... | |
boost::ptr_vector< Group > | m_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< Type > | m_typeVec |
The list of simple and complex types at redefine element. (Optional) More... | |
It models a XML Schema redefine.
Definition at line 52 of file Redefine.h.
te::xsd::Redefine::Redefine | ( | const std::string & | schemaLocation, |
std::string * | id = 0 |
||
) |
Constructor.
schemaLocation | It specifies the URI to the location of a schema document. |
id | It specifies a unique ID for the element. It can be a NULL value. |
Definition at line 33 of file Redefine.cpp.
te::xsd::Redefine::Redefine | ( | const Redefine & | rhs | ) |
te::xsd::Redefine::~Redefine | ( | ) |
Destructor.
Definition at line 45 of file Redefine.cpp.
void te::xsd::Redefine::addAnnotation | ( | Annotation * | ann | ) |
It inserts an annotation into the redefine.
ann | Some annotation. |
Definition at line 84 of file Redefine.cpp.
void te::xsd::Redefine::addAttributeGroup | ( | AttributeGroup * | ag | ) |
It inserts an attribute group into the redefine.
ag | Some attribute group. |
Definition at line 99 of file Redefine.cpp.
void te::xsd::Redefine::addGroup | ( | Group * | g | ) |
It inserts a group into the redefine.
g | Some group. |
Definition at line 94 of file Redefine.cpp.
void te::xsd::Redefine::addType | ( | Type * | t | ) |
It inserts a type into the redefine.
t | Some type. |
Definition at line 89 of file Redefine.cpp.
const boost::ptr_vector< te::xsd::Annotation > & te::xsd::Redefine::getAnnotations | ( | ) | const |
It returns the list of annotations at redefine element.
Definition at line 59 of file Redefine.cpp.
const boost::ptr_vector< te::xsd::AttributeGroup > & te::xsd::Redefine::getAttributeGroups | ( | ) | const |
It returns the list of attribute group declarations at redefine element.
Definition at line 74 of file Redefine.cpp.
const boost::ptr_vector< te::xsd::Group > & te::xsd::Redefine::getGroups | ( | ) | const |
It returns the list of group declarations at redefine element.
Definition at line 69 of file Redefine.cpp.
|
inherited |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
const std::string & te::xsd::Redefine::getSchemaLocation | ( | ) | const |
It returns the location of the redefined schema.
Definition at line 54 of file Redefine.cpp.
const boost::ptr_vector< te::xsd::Type > & te::xsd::Redefine::getTypes | ( | ) | const |
It returns the list of simple and complex types at redefine element.
Definition at line 64 of file Redefine.cpp.
te::xsd::Redefine & te::xsd::Redefine::operator= | ( | const Redefine & | rhs | ) |
Assignment operator.
rhs | Right-hand-side object. |
Definition at line 49 of file Redefine.cpp.
|
inherited |
it sets the id.
id | The id to be associated to the object. It will take the ownership of the given string. |
Definition at line 29 of file Identifiable.cpp.
References te::xsd::Identifiable::m_id.
Referenced by te::xsd::serialize::ReadIdentifiable().
void te::xsd::Redefine::setSchemaLocation | ( | const std::string & | schemaLocation | ) |
It sets the location of the redefined schema.
schemaLocation | The schema location. |
Definition at line 79 of file Redefine.cpp.
|
private |
The list of annotations at redefine element. (Optional)
Definition at line 168 of file Redefine.h.
|
private |
The list of attribute group declarations at redefine element. (Optional)
Definition at line 171 of file Redefine.h.
|
private |
The list of group declarations at redefine element. (Optional)
Definition at line 170 of file Redefine.h.
|
private |
It specifies a URI to the location of a schema document. (Required)
Definition at line 167 of file Redefine.h.
|
private |
The list of simple and complex types at redefine element. (Optional)
Definition at line 169 of file Redefine.h.