Qt 4.8
|
Represents a XSD identity constraint object. More...
#include <qxsdidentityconstraint_p.h>
Public Types | |
enum | Category { Key = 1, KeyReference, Unique } |
typedef QList< XsdIdentityConstraint::Ptr > | List |
typedef QExplicitlySharedDataPointer< XsdIdentityConstraint > | Ptr |
Public Types inherited from QPatternist::NamedSchemaComponent | |
enum | BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 } |
typedef QExplicitlySharedDataPointer< NamedSchemaComponent > | Ptr |
Properties | |
Category | m_category |
XsdXPathExpression::List | m_fields |
XsdIdentityConstraint::Ptr | m_referencedKey |
XsdXPathExpression::Ptr | m_selector |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Represents a XSD identity constraint object.
This class represents the identity constraint object of a XML schema as described here.
It contains information from either a key object, a keyref object or an unique object.
Definition at line 80 of file qxsdidentityconstraint_p.h.
Definition at line 84 of file qxsdidentityconstraint_p.h.
Definition at line 83 of file qxsdidentityconstraint_p.h.
Describes the category of the identity constraint.
Enumerator | |
---|---|
Key | The constraint is a key constraint. |
KeyReference | The constraint is a keyref constraint. |
Unique | The constraint is an unique constraint. |
Definition at line 89 of file qxsdidentityconstraint_p.h.
void XsdIdentityConstraint::addField | ( | const XsdXPathExpression::Ptr & | field | ) |
Adds a new field
to the identity constraint.
Definition at line 73 of file qxsdidentityconstraint.cpp.
Referenced by QPatternist::XsdSchemaParser::parseField().
XsdIdentityConstraint::Category XsdIdentityConstraint::category | ( | ) | const |
Returns the category of the identity constraint.
Definition at line 53 of file qxsdidentityconstraint.cpp.
Referenced by QPatternist::XsdSchemaResolver::resolveKeyReferences(), setCategory(), and QPatternist::XsdValidatingInstanceReader::validateIdentityConstraint().
XsdXPathExpression::List XsdIdentityConstraint::fields | ( | ) | const |
Returns all fields of the identity constraint.
Definition at line 78 of file qxsdidentityconstraint.cpp.
Referenced by QPatternist::XsdSchemaResolver::resolveKeyReferences(), QPatternist::XsdValidatingInstanceReader::selectNodeSets(), and setFields().
XsdIdentityConstraint::Ptr XsdIdentityConstraint::referencedKey | ( | ) | const |
Returns the referenced key of the identity constraint or an empty pointer if its type is not KeyReference.
Definition at line 88 of file qxsdidentityconstraint.cpp.
Referenced by setReferencedKey(), and QPatternist::XsdValidatingInstanceReader::validateKeyRefIdentityConstraint().
XsdXPathExpression::Ptr XsdIdentityConstraint::selector | ( | ) | const |
Returns the selector of the identity constraint.
Definition at line 63 of file qxsdidentityconstraint.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::selectNodeSets(), and setSelector().
void XsdIdentityConstraint::setCategory | ( | Category | category | ) |
Sets the category
of the identity constraint.
Definition at line 48 of file qxsdidentityconstraint.cpp.
Referenced by QPatternist::XsdSchemaParser::parseKey(), QPatternist::XsdSchemaParser::parseKeyRef(), and QPatternist::XsdSchemaParser::parseUnique().
void XsdIdentityConstraint::setFields | ( | const XsdXPathExpression::List & | fields | ) |
Sets the fields
of the identity constraint.
Each field is a restricted XPath 1.0 expression, that selects a set of nodes.
Definition at line 68 of file qxsdidentityconstraint.cpp.
void XsdIdentityConstraint::setReferencedKey | ( | const XsdIdentityConstraint::Ptr & | key | ) |
Sets the referenced key
of the identity constraint.
The key points to a identity constraint of type Key or Unique.
The identity constraint has only a referenced key if its type is KeyReference.
Definition at line 83 of file qxsdidentityconstraint.cpp.
Referenced by QPatternist::XsdSchemaResolver::resolveKeyReferences().
void XsdIdentityConstraint::setSelector | ( | const XsdXPathExpression::Ptr & | selector | ) |
Sets the selector
of the identity constraint.
The selector is a restricted XPath 1.0 expression, that selects a set of nodes.
Definition at line 58 of file qxsdidentityconstraint.cpp.
Referenced by QPatternist::XsdSchemaParser::parseSelector().
|
private |
Definition at line 162 of file qxsdidentityconstraint_p.h.
Referenced by category(), and setCategory().
|
private |
Definition at line 164 of file qxsdidentityconstraint_p.h.
Referenced by addField(), fields(), and setFields().
|
private |
Definition at line 165 of file qxsdidentityconstraint_p.h.
Referenced by referencedKey(), and setReferencedKey().
|
private |
Definition at line 163 of file qxsdidentityconstraint_p.h.
Referenced by selector(), and setSelector().