Qt 4.8
|
Represents a XSD simpleType object. More...
#include <qxsdsimpletype_p.h>
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Protected Functions inherited from QPatternist::AnySimpleType | |
AnySimpleType () | |
Protected Functions inherited from QPatternist::AnyType | |
AnyType () | |
This constructor is protected, because this class must be sub-classed. More... | |
Represents a XSD simpleType object.
This class represents the simpleType object of a XML schema as described here.
It contains information from either a top-level simple type declaration (as child of a schema object) or a local simple type declaration (as descendant of an element or complexType object).
Definition at line 80 of file qxsdsimpletype_p.h.
Definition at line 83 of file qxsdsimpletype_p.h.
|
virtual |
Returns the category (variety) of the simple type.
Reimplemented from QPatternist::AnySimpleType.
Definition at line 128 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkCircularInheritances(), QPatternist::XsdSchemaChecker::checkSimpleDerivationRestrictions(), QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints(), hasCircularUnionInheritance(), QPatternist::XsdTypeChecker::isValidString(), matchesType(), QPatternist::XsdSchemaParser::parseSimpleRestriction(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictions(), and setCategory().
NamedSchemaComponent::Ptr XsdSimpleType::context | ( | ) | const |
Returns the context component of the simple type.
Definition at line 78 of file qxsdsimpletype.cpp.
|
virtual |
Returns the derivation method of the simple type.
Reimplemented from QPatternist::AnySimpleType.
Definition at line 138 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkConstrainingFacets(), and QPatternist::XsdSchemaResolver::resolveSimpleRestrictions().
|
virtual |
Returns the display name of the simple type.
namePool | The name pool the type name is stored in. |
Reimplemented from QPatternist::XsdUserSchemaType< AnySimpleType >.
Definition at line 58 of file qxsdsimpletype.cpp.
XsdFacet::Hash XsdSimpleType::facets | ( | ) | const |
Returns the facets of the simple type.
Definition at line 118 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkConstrainingFacets(), QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints(), QPatternist::XsdSchemaContext::facetsForType(), QPatternist::XsdSchemaHelper::isSimpleDerivationOk(), QPatternist::XsdSchemaResolver::resolveEnumerationFacetValues(), and setFacets().
|
virtual |
Always returns true
.
Reimplemented from QPatternist::SchemaType.
Definition at line 143 of file qxsdsimpletype.cpp.
AnySimpleType::Ptr XsdSimpleType::itemType | ( | ) | const |
Returns the list item type of the simple type or an empty pointer if the category is not SimpleTypeList.
Definition at line 98 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkSimpleDerivationRestrictions(), QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints(), comparableType(), QPatternist::XsdTypeChecker::isValidString(), matchesType(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictions(), and QPatternist::XsdTypeChecker::valuesAreEqual().
AnySimpleType::List XsdSimpleType::memberTypes | ( | ) | const |
Returns the list member types of the simple type or an empty list if the category is not SimpleTypeUnion.
Definition at line 108 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkCircularInheritances(), QPatternist::XsdTypeChecker::checkConstrainingFacetsUnion(), QPatternist::XsdSchemaChecker::checkSimpleDerivationRestrictions(), QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints(), comparableType(), hasCircularUnionInheritance(), QPatternist::XsdSchemaHelper::isSimpleDerivationOk(), QPatternist::XsdTypeChecker::isValidString(), matchesType(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictions(), QPatternist::XsdSchemaResolver::resolveSimpleUnionTypes(), and QPatternist::XsdTypeChecker::valuesAreEqual().
AnySimpleType::Ptr XsdSimpleType::primitiveType | ( | ) | const |
Returns the primitive type of the simple type or an empty pointer if the category is not SimpleTypeAtomic.
Definition at line 88 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkConstrainingFacets(), QPatternist::XsdSchemaChecker::checkElementConstraints(), comparableType(), QPatternist::XsdSchemaDebugger::dumpType(), QPatternist::XsdTypeChecker::isValidString(), and QPatternist::XsdValidatingInstanceReader::selectNodeSets().
void XsdSimpleType::setCategory | ( | TypeCategory | category | ) |
Sets the category
(variety) of the simple type.
Definition at line 123 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalSimpleType(), QPatternist::XsdSchemaParser::parseList(), QPatternist::XsdSchemaParser::parseLocalSimpleType(), QPatternist::XsdSchemaParser::parseSimpleRestriction(), QPatternist::XsdSchemaParser::parseUnion(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictions(), and QPatternist::XsdSchemaTypesFactory::XsdSchemaTypesFactory().
void XsdSimpleType::setContext | ( | const NamedSchemaComponent::Ptr & | component | ) |
Sets the context component
of the simple type.
Definition at line 73 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalAttribute(), QPatternist::XsdSchemaParser::parseGlobalElement(), QPatternist::XsdSchemaParser::parseList(), QPatternist::XsdSchemaParser::parseLocalAttribute(), QPatternist::XsdSchemaParser::parseLocalElement(), QPatternist::XsdSchemaParser::parseSimpleContentRestriction(), QPatternist::XsdSchemaParser::parseSimpleRestriction(), and QPatternist::XsdSchemaParser::parseUnion().
void XsdSimpleType::setDerivationMethod | ( | DerivationMethod | method | ) |
Sets the derivation method
of the simple type.
Definition at line 133 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseList(), QPatternist::XsdSchemaParser::parseSimpleRestriction(), QPatternist::XsdSchemaParser::parseUnion(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), and QPatternist::XsdSchemaTypesFactory::XsdSchemaTypesFactory().
void XsdSimpleType::setFacets | ( | const XsdFacet::Hash & | facets | ) |
Sets the facets
of the simple type.
Definition at line 113 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseList(), QPatternist::XsdSchemaParser::parseSimpleRestriction(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), and QPatternist::XsdSchemaTypesFactory::XsdSchemaTypesFactory().
void XsdSimpleType::setItemType | ( | const AnySimpleType::Ptr & | type | ) |
Sets the list item type
of the simple type.
The list item type is only specified if the category is SimpleTypeList.
Definition at line 93 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseList(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveSimpleListType(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictions(), and QPatternist::XsdSchemaTypesFactory::XsdSchemaTypesFactory().
void XsdSimpleType::setMemberTypes | ( | const AnySimpleType::List & | types | ) |
Sets the member types
of the simple type.
The member types are only specified if the category is SimpleTypeUnion.
Definition at line 103 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseUnion(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictions(), and QPatternist::XsdSchemaResolver::resolveSimpleUnionTypes().
void XsdSimpleType::setPrimitiveType | ( | const AnySimpleType::Ptr & | type | ) |
Sets the primitive type
of the simple type.
The primitive type is only specified if the category is SimpleTypeAtomic.
Definition at line 83 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), and QPatternist::XsdSchemaResolver::resolveSimpleRestrictions().
void XsdSimpleType::setWxsSuperType | ( | const SchemaType::Ptr & | type | ) |
Sets the base type
of the simple type.
Definition at line 63 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseList(), QPatternist::XsdSchemaParser::parseRedefine(), QPatternist::XsdSchemaParser::parseSimpleRestriction(), QPatternist::XsdSchemaParser::parseUnion(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveSimpleRestrictionBaseTypes(), and QPatternist::XsdSchemaTypesFactory::XsdSchemaTypesFactory().
|
virtual |
Returns the base type of the simple type or an empty pointer if no base type is set.
Reimplemented from QPatternist::AnySimpleType.
Definition at line 68 of file qxsdsimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkBasicSimpleTypeConstraints(), QPatternist::XsdSchemaChecker::checkConstrainingFacets(), QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints(), QPatternist::XsdTypeChecker::isValidString(), matchesType(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), and QPatternist::XsdSchemaResolver::resolveSimpleRestrictions().
|
private |
Definition at line 205 of file qxsdsimpletype_p.h.
Referenced by context(), and setContext().
|
private |
Definition at line 211 of file qxsdsimpletype_p.h.
Referenced by derivationMethod(), and setDerivationMethod().
|
private |
Definition at line 209 of file qxsdsimpletype_p.h.
Referenced by facets(), and setFacets().
|
private |
Definition at line 207 of file qxsdsimpletype_p.h.
Referenced by itemType(), and setItemType().
|
private |
Definition at line 208 of file qxsdsimpletype_p.h.
Referenced by memberTypes(), and setMemberTypes().
|
private |
Definition at line 206 of file qxsdsimpletype_p.h.
Referenced by primitiveType(), and setPrimitiveType().
|
private |
Definition at line 204 of file qxsdsimpletype_p.h.
Referenced by setWxsSuperType(), and wxsSuperType().
|
private |
Definition at line 210 of file qxsdsimpletype_p.h.
Referenced by category(), and setCategory().