Qt 4.8
|
A helper class for validating identity constraints. More...
#include <qxsdidchelper_p.h>
Public Types | |
typedef QSet< TargetNode > | Set |
Public Functions | |
void | addField (const QXmlItem &item, const QString &data, const SchemaType::Ptr &type) |
int | emptyFieldsCount () const |
QVector< QXmlItem > | fieldItems () const |
bool | fieldsAreEqual (const TargetNode &other, const NamePool::Ptr &namePool, const ReportContext::Ptr &context, const SourceLocationReflection *const reflection) const |
QXmlItem | item () const |
bool | operator== (const TargetNode &other) const |
TargetNode (const QXmlItem &item) | |
Properties | |
QVector< FieldNode > | m_fields |
QXmlItem | m_item |
A helper class for validating identity constraints.
This class represents a target or qualified node from the target or qualified node set as defined in the validation rules at http://www.w3.org/TR/xmlschema11-1/#d0e32243.
A target node is part of the qualified node set, if all of its fields are not empty.
Definition at line 125 of file qxsdidchelper_p.h.
typedef QSet<TargetNode> QPatternist::TargetNode::Set |
Defines a set of target nodes.
Definition at line 131 of file qxsdidchelper_p.h.
|
explicit |
Creates a new target node that is bound to the xml node item
.
Definition at line 83 of file qxsdidchelper.cpp.
void TargetNode::addField | ( | const QXmlItem & | item, |
const QString & | data, | ||
const SchemaType::Ptr & | type | ||
) |
Adds a new field to the target node with the given values.
Definition at line 127 of file qxsdidchelper.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::selectNodeSets().
int TargetNode::emptyFieldsCount | ( | ) | const |
Returns the number of fields that are empty.
Definition at line 103 of file qxsdidchelper.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::selectNodeSets().
Returns all xml node items, the fields of that target node are bound to.
Definition at line 93 of file qxsdidchelper.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::validateKeyIdentityConstraint().
bool TargetNode::fieldsAreEqual | ( | const TargetNode & | other, |
const NamePool::Ptr & | namePool, | ||
const ReportContext::Ptr & | context, | ||
const SourceLocationReflection *const | reflection | ||
) | const |
Returns whether the target node has the same fields as the other
target node.
Definition at line 114 of file qxsdidchelper.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::validateKeyRefIdentityConstraint(), and QPatternist::XsdValidatingInstanceReader::validateUniqueIdentityConstraint().
QXmlItem TargetNode::item | ( | ) | const |
Returns the xml node item the target node is bound to.
Definition at line 88 of file qxsdidchelper.cpp.
Referenced by QPatternist::qHash().
bool TargetNode::operator== | ( | const TargetNode & | other | ) | const |
Returns whether the target node is equal to the other
target node.
Definition at line 132 of file qxsdidchelper.cpp.
Definition at line 170 of file qxsdidchelper_p.h.
Referenced by addField(), emptyFieldsCount(), fieldItems(), and fieldsAreEqual().
|
private |
Definition at line 169 of file qxsdidchelper_p.h.
Referenced by item(), and operator==().