![]() |
Qt 4.8
|
Represents a XSD attribute object. More...
#include <qxsdattribute_p.h>
Classes | |
| class | Scope |
| Describes the scope of an attribute. More... | |
| class | ValueConstraint |
| Describes the value constraint of an attribute. More... | |
Public Types | |
| typedef QList< XsdAttribute::Ptr > | List |
| typedef QExplicitlySharedDataPointer< XsdAttribute > | Ptr |
Public Types inherited from QPatternist::NamedSchemaComponent | |
| enum | BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 } |
| typedef QExplicitlySharedDataPointer< NamedSchemaComponent > | Ptr |
Properties | |
| Scope::Ptr | m_scope |
| AnySimpleType::Ptr | m_type |
| ValueConstraint::Ptr | m_valueConstraint |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
| QAtomicInt | ref |
Represents a XSD attribute object.
This class represents the attribute object of a XML schema as described here.
It contains information from either a top-level attribute declaration (as child of a schema object) or of a local attribute declaration (as child of complexType or attributeGroup object without a 'ref' attribute).
All other occurrences of the attribute object are represented by the XsdAttributeUse class.
Definition at line 83 of file qxsdattribute_p.h.
Definition at line 87 of file qxsdattribute_p.h.
Definition at line 86 of file qxsdattribute_p.h.
| XsdAttribute::Scope::Ptr XsdAttribute::scope | ( | ) | const |
Returns the scope of the attribute.
Definition at line 115 of file qxsdattribute.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalAttribute(), QPatternist::XsdSchemaParser::parseLocalAttribute(), and setScope().
| void XsdAttribute::setScope | ( | const Scope::Ptr & | scope | ) |
Sets the scope of the attribute.
Definition at line 110 of file qxsdattribute.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalAttribute(), and QPatternist::XsdSchemaParser::parseLocalAttribute().
| void XsdAttribute::setType | ( | const AnySimpleType::Ptr & | type | ) |
Sets the simple type definition of the attribute.
Definition at line 100 of file qxsdattribute.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalAttribute(), QPatternist::XsdSchemaParser::parseLocalAttribute(), and QPatternist::XsdSchemaResolver::resolveAttributeTypes().
| void XsdAttribute::setValueConstraint | ( | const ValueConstraint::Ptr & | constraint | ) |
Sets the value constraint of the attribute.
Definition at line 120 of file qxsdattribute.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalAttribute(), and QPatternist::XsdSchemaParser::parseLocalAttribute().
| AnySimpleType::Ptr XsdAttribute::type | ( | ) | const |
Returns the simple type definition of the attribute.
Definition at line 105 of file qxsdattribute.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkAttributeConstraints(), QPatternist::XsdSchemaDebugger::dumpAttribute(), setType(), QPatternist::XsdValidatingInstanceReader::validateAttribute(), and QPatternist::XsdValidatingInstanceReader::validateElementComplexType().
| XsdAttribute::ValueConstraint::Ptr XsdAttribute::valueConstraint | ( | ) | const |
Returns the value constraint of the attribute.
Definition at line 125 of file qxsdattribute.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkAttributeConstraints(), QPatternist::XsdSchemaParser::parseGlobalAttribute(), QPatternist::XsdSchemaParser::parseLocalAttribute(), QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), and QPatternist::XsdValidatingInstanceReader::validateAttribute().
|
private |
Definition at line 237 of file qxsdattribute_p.h.
Referenced by scope(), and setScope().
|
private |
Definition at line 236 of file qxsdattribute_p.h.
|
private |
Definition at line 238 of file qxsdattribute_p.h.
Referenced by setValueConstraint(), and valueConstraint().