Qt 4.8
|
Represents a XSD schema object. More...
#include <qxsdschema_p.h>
Public Types | |
typedef QList< XsdSchema::Ptr > | List |
typedef QExplicitlySharedDataPointer< XsdSchema > | Ptr |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Represents a XSD schema object.
The class provides access to all components of a parsed XSD.
Definition at line 91 of file qxsdschema_p.h.
Definition at line 95 of file qxsdschema_p.h.
Definition at line 94 of file qxsdschema_p.h.
XsdSchema::XsdSchema | ( | const NamePool::Ptr & | namePool | ) |
Creates a new schema object.
namePool | The namepool that should be used for names of all schema components. |
Definition at line 51 of file qxsdschema.cpp.
XsdSchema::~XsdSchema | ( | ) |
void XsdSchema::addAnonymousType | ( | const SchemaType::Ptr & | type | ) |
Adds an anonymous type
to the schema. Anonymous types have no name and are declared locally inside an element object.
type | The new anonymous type. |
Definition at line 168 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addAnonymousType(), QPatternist::XsdSchemaMerger::merge(), and QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes().
void XsdSchema::addAttribute | ( | const XsdAttribute::Ptr & | attribute | ) |
Adds a new top-level attribute
to the schema.
attribute | The new attribute. |
Definition at line 96 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addAttribute(), and QPatternist::XsdSchemaMerger::merge().
void XsdSchema::addAttributeGroup | ( | const XsdAttributeGroup::Ptr & | group | ) |
Adds a new top-level attribute group
to the schema.
group | The new attribute group. |
Definition at line 188 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addAttributeGroup(), and QPatternist::XsdSchemaMerger::merge().
void XsdSchema::addElement | ( | const XsdElement::Ptr & | element | ) |
Adds a new top-level element
to the schema.
element | The new element. |
Definition at line 75 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addElement(), and QPatternist::XsdSchemaMerger::merge().
void XsdSchema::addElementGroup | ( | const XsdModelGroup::Ptr & | group | ) |
Adds a new top-level element group
to the schema.
group | The new element group. |
Definition at line 209 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addElementGroup(), and QPatternist::XsdSchemaMerger::merge().
void XsdSchema::addIdentityConstraint | ( | const XsdIdentityConstraint::Ptr & | constraint | ) |
Adds a new identity constraint
to the schema.
Definition at line 251 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addIdentityConstraint(), and QPatternist::XsdSchemaMerger::merge().
void XsdSchema::addNotation | ( | const XsdNotation::Ptr & | notation | ) |
Adds a new top-level notation
to the schema.
notation | The new notation. |
Definition at line 230 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addNotation(), and QPatternist::XsdSchemaMerger::merge().
void XsdSchema::addType | ( | const SchemaType::Ptr & | type | ) |
Adds a new top-level type
to the schema. That can be a simple or a complex type.
type | The new type. |
Definition at line 117 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addType(), and QPatternist::XsdSchemaMerger::merge().
SchemaType::List XsdSchema::anonymousTypes | ( | ) | const |
Returns the list of all anonymous types.
Definition at line 181 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkAttributeConstraints(), QPatternist::XsdSchemaChecker::checkAttributeUseConstraints(), QPatternist::XsdSchemaChecker::checkBasicCircularInheritances(), QPatternist::XsdSchemaChecker::checkBasicComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkBasicSimpleTypeConstraints(), QPatternist::XsdSchemaChecker::checkCircularInheritances(), QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkConstrainingFacets(), QPatternist::XsdSchemaChecker::checkDuplicatedAttributeUses(), QPatternist::XsdSchemaChecker::checkElementDuplicates(), QPatternist::XsdSchemaChecker::checkInheritanceRestrictions(), QPatternist::XsdSchemaChecker::checkSimpleDerivationRestrictions(), QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints(), collectAllElements(), QPatternist::XsdSchemaDebugger::dumpSchema(), QPatternist::XsdSchemaMerger::merge(), QPatternist::XsdSchemaResolver::resolveAttributeInheritance(), QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveEnumerationFacetValues(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictions(), and QPatternist::XsdSchemaResolver::resolveTermReferences().
XsdAttribute::Ptr XsdSchema::attribute | ( | const QXmlName & | name | ) | const |
Returns the top-level attribute of the schema with the given name
or an empty pointer if none exist.
Definition at line 103 of file qxsdschema.cpp.
Referenced by addAttribute(), QPatternist::XsdSchemaParser::addAttribute(), QPatternist::XsdValidatingInstanceReader::attributeByName(), QPatternist::XsdSchemaMerger::merge(), and QPatternist::XsdSchemaResolver::resolveAttributeTermReferences().
XsdAttributeGroup::Ptr XsdSchema::attributeGroup | ( | const QXmlName | name | ) | const |
Returns the top-level attribute group of the schema with the given name
or an empty pointer if none exist.
Definition at line 195 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addAttributeGroup(), QPatternist::XsdSchemaMerger::merge(), and QPatternist::XsdSchemaResolver::resolveAttributeTermReferences().
XsdAttributeGroup::List XsdSchema::attributeGroups | ( | ) | const |
Returns the list of all top-level attribute groups.
Definition at line 202 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkDuplicatedAttributeUses(), QPatternist::XsdSchemaMerger::merge(), QPatternist::XsdSchemaParser::parseRedefine(), and QPatternist::XsdSchemaResolver::resolveAttributeTermReferences().
XsdAttribute::List XsdSchema::attributes | ( | ) | const |
Returns the list of all top-level attributes.
Definition at line 110 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkAttributeConstraints(), QPatternist::XsdSchemaDebugger::dumpSchema(), QPatternist::XsdSchemaMerger::merge(), and QPatternist::XsdSchemaParser::parseRedefine().
XsdComplexType::List XsdSchema::complexTypes | ( | ) | const |
Returns the list of all top-level complex types.
Definition at line 153 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::parseRedefine().
XsdElement::Ptr XsdSchema::element | ( | const QXmlName & | name | ) | const |
Returns the top-level element of the schema with the given name
or an empty pointer if none exist.
Definition at line 82 of file qxsdschema.cpp.
Referenced by addElement(), QPatternist::XsdSchemaParser::addElement(), QPatternist::XsdValidatingInstanceReader::elementByName(), QPatternist::XsdSchemaMerger::merge(), QPatternist::XsdSchemaResolver::resolveSubstitutionGroupAffiliations(), and QPatternist::XsdSchemaResolver::resolveTermReference().
XsdModelGroup::Ptr XsdSchema::elementGroup | ( | const QXmlName & | name | ) | const |
Returns the top-level element group of the schema with the given name
or an empty pointer if none exist.
Definition at line 216 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addElementGroup(), QPatternist::XsdSchemaMerger::merge(), and QPatternist::XsdSchemaResolver::resolveTermReference().
XsdModelGroup::List XsdSchema::elementGroups | ( | ) | const |
Returns the list of all top-level element groups.
Definition at line 223 of file qxsdschema.cpp.
Referenced by collectAllElements(), QPatternist::XsdSchemaMerger::merge(), QPatternist::XsdSchemaParser::parseRedefine(), and QPatternist::XsdSchemaResolver::resolveTermReferences().
XsdElement::List XsdSchema::elements | ( | ) | const |
Returns the list of all top-level elements.
Definition at line 89 of file qxsdschema.cpp.
Referenced by collectAllElements(), QPatternist::XsdSchemaDebugger::dumpSchema(), QPatternist::XsdSchemaMerger::merge(), QPatternist::XsdSchemaParser::parseRedefine(), and QPatternist::XsdSchemaResolver::resolveSubstitutionGroups().
XsdIdentityConstraint::Ptr XsdSchema::identityConstraint | ( | const QXmlName & | name | ) | const |
Returns the identity constraint with the given name
or an empty pointer if none exist.
Definition at line 258 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::addIdentityConstraint(), QPatternist::XsdSchemaMerger::merge(), and QPatternist::XsdSchemaResolver::resolveKeyReferences().
XsdIdentityConstraint::List XsdSchema::identityConstraints | ( | ) | const |
Returns the list of all identity constraints in this schema.
Definition at line 265 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaMerger::merge().
NamePool::Ptr XsdSchema::namePool | ( | ) | const |
Returns the namepool that is used for names of all schema components.
Definition at line 60 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaMerger::merge().
XsdNotation::Ptr XsdSchema::notation | ( | const QXmlName & | name | ) | const |
Returns the top-level notation of the schema with the given name
or an empty pointer if none exist.
Definition at line 237 of file qxsdschema.cpp.
Referenced by addNotation(), QPatternist::XsdSchemaParser::addNotation(), QPatternist::XsdSchemaChecker::checkConstrainingFacets(), and QPatternist::XsdSchemaMerger::merge().
XsdNotation::List XsdSchema::notations | ( | ) | const |
Returns the list of all top-level notations.
Definition at line 244 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaMerger::merge(), and QPatternist::XsdSchemaParser::parseRedefine().
void XsdSchema::setTargetNamespace | ( | const QString & | targetNamespace | ) |
Sets the targetNamespace
of the schema.
Definition at line 65 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::parseSchema().
XsdSimpleType::List XsdSchema::simpleTypes | ( | ) | const |
Returns the list of all top-level simple types.
Definition at line 138 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaParser::parseRedefine().
QString XsdSchema::targetNamespace | ( | ) | const |
Returns the target namespace of the schema.
Definition at line 70 of file qxsdschema.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::addSchema(), and setTargetNamespace().
SchemaType::Ptr XsdSchema::type | ( | const QXmlName & | name | ) | const |
Returns the top-level type of the schema with the given name
or an empty pointer if none exist.
Definition at line 124 of file qxsdschema.cpp.
Referenced by addType(), QPatternist::XsdSchemaParser::addType(), QPatternist::XsdSchemaMerger::merge(), QPatternist::XsdSchemaResolver::resolveAlternativeTypes(), QPatternist::XsdSchemaResolver::resolveAttributeTypes(), QPatternist::XsdSchemaResolver::resolveComplexBaseTypes(), QPatternist::XsdSchemaResolver::resolveElementTypes(), QPatternist::XsdSchemaResolver::resolveSimpleListType(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictionBaseTypes(), QPatternist::XsdSchemaResolver::resolveSimpleUnionTypes(), and QPatternist::XsdValidatingInstanceReader::typeByName().
SchemaType::List XsdSchema::types | ( | ) | const |
Returns the list of all top-level types.
Definition at line 131 of file qxsdschema.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkAttributeConstraints(), QPatternist::XsdSchemaChecker::checkAttributeUseConstraints(), QPatternist::XsdSchemaChecker::checkBasicCircularInheritances(), QPatternist::XsdSchemaChecker::checkBasicComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkBasicSimpleTypeConstraints(), QPatternist::XsdSchemaChecker::checkCircularInheritances(), QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkConstrainingFacets(), QPatternist::XsdSchemaChecker::checkDuplicatedAttributeUses(), QPatternist::XsdSchemaChecker::checkElementDuplicates(), QPatternist::XsdSchemaChecker::checkInheritanceRestrictions(), QPatternist::XsdSchemaChecker::checkSimpleDerivationRestrictions(), QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints(), collectAllElements(), complexTypes(), QPatternist::XsdSchemaDebugger::dumpSchema(), QPatternist::XsdSchemaMerger::merge(), QPatternist::XsdSchemaResolver::resolveAttributeInheritance(), QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveEnumerationFacetValues(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictions(), QPatternist::XsdSchemaResolver::resolveTermReferences(), and simpleTypes().
|
private |
Definition at line 288 of file qxsdschema_p.h.
Referenced by addAnonymousType(), and anonymousTypes().
|
private |
Definition at line 289 of file qxsdschema_p.h.
Referenced by addAttributeGroup(), attributeGroup(), and attributeGroups().
|
private |
Definition at line 286 of file qxsdschema_p.h.
Referenced by addAttribute(), attribute(), and attributes().
|
private |
Definition at line 290 of file qxsdschema_p.h.
Referenced by addElementGroup(), elementGroup(), and elementGroups().
|
private |
Definition at line 285 of file qxsdschema_p.h.
Referenced by addElement(), element(), and elements().
|
private |
Definition at line 292 of file qxsdschema_p.h.
Referenced by addIdentityConstraint(), identityConstraint(), and identityConstraints().
|
mutableprivate |
Definition at line 293 of file qxsdschema_p.h.
Referenced by addAnonymousType(), addAttribute(), addAttributeGroup(), addElement(), addElementGroup(), addIdentityConstraint(), addNotation(), addType(), anonymousTypes(), attribute(), attributeGroup(), attributeGroups(), attributes(), complexTypes(), element(), elementGroup(), elementGroups(), elements(), identityConstraint(), identityConstraints(), notation(), notations(), simpleTypes(), type(), and types().
|
private |
Definition at line 283 of file qxsdschema_p.h.
Referenced by addAnonymousType(), addAttribute(), addAttributeGroup(), addElement(), addElementGroup(), addIdentityConstraint(), addNotation(), addType(), and namePool().
|
private |
Definition at line 291 of file qxsdschema_p.h.
Referenced by addNotation(), notation(), and notations().
|
private |
Definition at line 284 of file qxsdschema_p.h.
Referenced by setTargetNamespace(), and targetNamespace().
|
private |
Definition at line 287 of file qxsdschema_p.h.
Referenced by addType(), complexTypes(), simpleTypes(), type(), and types().