A class that models a XML schema (XSD). More...
#include <Schema.h>
Public Member Functions | |
| void | addAnnotation (Annotation *a) |
| void | addAttribute (AbstractAttribute *a) |
| void | addAttributeGroup (AttributeGroup *ag) |
| void | addComplexType (ComplexType *c) |
| void | addElement (Element *e) |
| void | addGroup (Group *g) |
| void | addImport (Import *i) |
| void | addInclude (Include *i) |
| void | addNamespace (const std::string &ns, const std::string &nsprefix) |
| void | addNotation (Notation *n) |
| void | addRedefine (Redefine *r) |
| void | addSimpleType (SimpleType *s) |
| const boost::ptr_vector< Annotation > & | getAnnotations () const |
| Form | getAttributeFormDefault () const |
| const boost::ptr_vector< AttributeGroup > & | getAttributeGroups () const |
| const boost::ptr_vector< AbstractAttribute > & | getAttributes () const |
| int | getBlockDefault () const |
| const boost::ptr_vector< ComplexType > & | getComplexTypes () const |
| Form | getElementFormDefault () const |
| const boost::ptr_vector< Element > & | getElements () const |
| int | getFinalDefault () const |
| const boost::ptr_vector< Group > & | getGroups () const |
| std::string * | getId () const |
| It returns a pointer (may be NULL) to the object id. More... | |
| const boost::ptr_vector< Import > & | getImports () const |
| const boost::ptr_vector< Include > & | getIncludes () const |
| const boost::bimap< std::string, std::string > & | getNamespaces () const |
| boost::bimap< std::string, std::string > & | getNamespaces () |
| const boost::ptr_vector< Notation > & | getNotations () const |
| const boost::ptr_vector< Redefine > & | getRedefines () const |
| const boost::ptr_vector< SimpleType > & | getSimpleTypes () const |
| const std::string & | getTargetNamespace () const |
| const std::string & | getVersion () const |
| Schema (std::string *id) | |
| void | setAttributeFormDefault (Form f) |
| void | setBlockDefault (int bdf) |
| void | setElementFormDefault (Form f) |
| void | setFinalDefault (int fdf) |
| void | setId (std::string *id) |
| it sets the id. More... | |
| void | setTargetNamespace (const std::string &tns) |
| void | setVersion (const std::string &v) |
| ~Schema () | |
Private Attributes | |
| boost::ptr_vector< Annotation > | m_annotationVec |
| The list of annotation declarations at schema root. More... | |
| Form | m_attributeFormDefault |
| Tells if attributes declared in this schema must use the namespace prefix or not. Default: Unqualified. (Optional) More... | |
| boost::ptr_vector< AttributeGroup > | m_attributeGroupVec |
| The list of attributes at schema root. More... | |
| boost::ptr_vector< AbstractAttribute > | m_attributeVec |
| The list of attributes at schema root. More... | |
| int | m_blockDefault |
| boost::ptr_vector< ComplexType > | m_complexTypeVec |
| The list of complex type declarations at schema root. More... | |
| Form | m_elementFormDefault |
| Tells if elements declared in this schema must use the namespace prefix or not. Default: Unqualified. (Optional) More... | |
| boost::ptr_vector< Element > | m_elementVec |
| The list of elements declarations at schema root. More... | |
| int | m_finalDefault |
| boost::ptr_vector< Group > | m_groupVec |
| The list of group declarations at schema root. More... | |
| boost::ptr_vector< Import > | m_importVec |
| The list of import declarations at schema root. More... | |
| boost::ptr_vector< Include > | m_includeVec |
| The list of include declarations at schema root. More... | |
| boost::ptr_vector< Notation > | m_notationVec |
| The list of notation declarations at schema root. More... | |
| boost::ptr_vector< Redefine > | m_redefineVec |
| The list of redefine declarations at schema root. More... | |
| boost::ptr_vector< SimpleType > | m_simpleTypeVec |
| The list of simple type declarations at schema root. More... | |
| std::string | m_targetNamespace |
| The URI namespace of the schema. (Mandatory) More... | |
| std::string | m_version |
| The schema version. (Optional) More... | |
| boost::bimap< std::string, std::string > | m_xmlns |
| A list of one or more namespaces for use in this schema. Mandatory only if attributeFormDefault or elementFormDefault is set to Qualified. More... | |
A class that models a XML schema (XSD).
| te::xsd::Schema::Schema | ( | std::string * | id | ) |
Definition at line 32 of file Schema.cpp.
| te::xsd::Schema::~Schema | ( | ) |
Definition at line 41 of file Schema.cpp.
| void te::xsd::Schema::addAnnotation | ( | Annotation * | a | ) |
Definition at line 120 of file Schema.cpp.
References m_annotationVec.
| void te::xsd::Schema::addAttribute | ( | AbstractAttribute * | a | ) |
Definition at line 145 of file Schema.cpp.
References m_attributeVec.
| void te::xsd::Schema::addAttributeGroup | ( | AttributeGroup * | ag | ) |
Definition at line 140 of file Schema.cpp.
References m_attributeGroupVec.
| void te::xsd::Schema::addComplexType | ( | ComplexType * | c | ) |
Definition at line 130 of file Schema.cpp.
References m_complexTypeVec.
| void te::xsd::Schema::addElement | ( | Element * | e | ) |
Definition at line 150 of file Schema.cpp.
References m_elementVec.
| void te::xsd::Schema::addGroup | ( | Group * | g | ) |
Definition at line 135 of file Schema.cpp.
References m_groupVec.
| void te::xsd::Schema::addImport | ( | Import * | i | ) |
Definition at line 110 of file Schema.cpp.
References m_importVec.
| void te::xsd::Schema::addInclude | ( | Include * | i | ) |
Definition at line 105 of file Schema.cpp.
References m_includeVec.
| void te::xsd::Schema::addNamespace | ( | const std::string & | ns, |
| const std::string & | nsprefix | ||
| ) |
Definition at line 100 of file Schema.cpp.
References m_xmlns.
| void te::xsd::Schema::addNotation | ( | Notation * | n | ) |
Definition at line 155 of file Schema.cpp.
References m_notationVec.
| void te::xsd::Schema::addRedefine | ( | Redefine * | r | ) |
Definition at line 115 of file Schema.cpp.
References m_redefineVec.
| void te::xsd::Schema::addSimpleType | ( | SimpleType * | s | ) |
Definition at line 125 of file Schema.cpp.
References m_simpleTypeVec.
| const boost::ptr_vector< te::xsd::Annotation > & te::xsd::Schema::getAnnotations | ( | ) | const |
Definition at line 60 of file Schema.cpp.
References m_annotationVec.
|
inline |
| const boost::ptr_vector< te::xsd::AttributeGroup > & te::xsd::Schema::getAttributeGroups | ( | ) | const |
Definition at line 80 of file Schema.cpp.
References m_attributeGroupVec.
| const boost::ptr_vector< te::xsd::AbstractAttribute > & te::xsd::Schema::getAttributes | ( | ) | const |
Definition at line 85 of file Schema.cpp.
References m_attributeVec.
| const boost::ptr_vector< te::xsd::ComplexType > & te::xsd::Schema::getComplexTypes | ( | ) | const |
Definition at line 70 of file Schema.cpp.
References m_complexTypeVec.
|
inline |
| const boost::ptr_vector< te::xsd::Element > & te::xsd::Schema::getElements | ( | ) | const |
Definition at line 90 of file Schema.cpp.
References m_elementVec.
| const boost::ptr_vector< te::xsd::Group > & te::xsd::Schema::getGroups | ( | ) | const |
Definition at line 75 of file Schema.cpp.
References m_groupVec.
|
inherited |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
References te::xsd::Identifiable::m_id.
| const boost::ptr_vector< te::xsd::Import > & te::xsd::Schema::getImports | ( | ) | const |
Definition at line 50 of file Schema.cpp.
References m_importVec.
| const boost::ptr_vector< te::xsd::Include > & te::xsd::Schema::getIncludes | ( | ) | const |
Definition at line 45 of file Schema.cpp.
References m_includeVec.
|
inline |
|
inline |
| const boost::ptr_vector< te::xsd::Notation > & te::xsd::Schema::getNotations | ( | ) | const |
Definition at line 95 of file Schema.cpp.
References m_notationVec.
| const boost::ptr_vector< te::xsd::Redefine > & te::xsd::Schema::getRedefines | ( | ) | const |
Definition at line 55 of file Schema.cpp.
References m_redefineVec.
| const boost::ptr_vector< te::xsd::SimpleType > & te::xsd::Schema::getSimpleTypes | ( | ) | const |
Definition at line 65 of file Schema.cpp.
References m_simpleTypeVec.
|
inline |
|
inline |
|
inline |
|
inline |
|
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().
|
inline |
|
inline |
|
private |
The list of annotation declarations at schema root.
Definition at line 161 of file Schema.h.
Referenced by addAnnotation(), and getAnnotations().
|
private |
|
private |
The list of attributes at schema root.
Definition at line 165 of file Schema.h.
Referenced by addAttributeGroup(), and getAttributeGroups().
|
private |
The list of attributes at schema root.
Definition at line 167 of file Schema.h.
Referenced by addAttribute(), and getAttributes().
|
private |
The list of complex type declarations at schema root.
Definition at line 163 of file Schema.h.
Referenced by addComplexType(), and getComplexTypes().
|
private |
|
private |
The list of elements declarations at schema root.
Definition at line 166 of file Schema.h.
Referenced by addElement(), and getElements().
|
private |
The list of group declarations at schema root.
Definition at line 164 of file Schema.h.
Referenced by addGroup(), and getGroups().
|
private |
The list of import declarations at schema root.
Definition at line 159 of file Schema.h.
Referenced by addImport(), and getImports().
|
private |
The list of include declarations at schema root.
Definition at line 158 of file Schema.h.
Referenced by addInclude(), and getIncludes().
|
private |
The list of notation declarations at schema root.
Definition at line 168 of file Schema.h.
Referenced by addNotation(), and getNotations().
|
private |
The list of redefine declarations at schema root.
Definition at line 160 of file Schema.h.
Referenced by addRedefine(), and getRedefines().
|
private |
The list of simple type declarations at schema root.
Definition at line 162 of file Schema.h.
Referenced by addSimpleType(), and getSimpleTypes().
|
private |
|
private |
|
private |
A list of one or more namespaces for use in this schema. Mandatory only if attributeFormDefault or elementFormDefault is set to Qualified.
Definition at line 156 of file Schema.h.
Referenced by addNamespace().