Qt 4.8
|
A helper class for validating identity constraints. More...
#include <qxsdidchelper_p.h>
Public Functions | |
FieldNode () | |
FieldNode (const QXmlItem &item, const QString &data, const SchemaType::Ptr &type) | |
bool | isEmpty () const |
bool | isEqualTo (const FieldNode &other, const NamePool::Ptr &namePool, const ReportContext::Ptr &context, const SourceLocationReflection *const reflection) const |
QXmlItem | item () const |
Properties | |
QString | m_data |
QXmlItem | m_item |
SchemaType::Ptr | m_type |
A helper class for validating identity constraints.
This class represents a field node from the key-sequence as defined in the validation rules at http://www.w3.org/TR/xmlschema11-1/#d0e32243.
Definition at line 73 of file qxsdidchelper_p.h.
FieldNode::FieldNode | ( | ) |
FieldNode::FieldNode | ( | const QXmlItem & | item, |
const QString & | data, | ||
const SchemaType::Ptr & | type | ||
) |
Creates a field node that is bound to a xml node.
item | The xml node the field is bound to. |
data | The string content of that field. |
type | The type that is bound to that field. |
Definition at line 55 of file qxsdidchelper.cpp.
bool FieldNode::isEmpty | ( | ) | const |
Returns whether this field is empty.
A field can be empty, if the xpath expression selects an absent attribute or element.
Definition at line 62 of file qxsdidchelper.cpp.
bool FieldNode::isEqualTo | ( | const FieldNode & | other, |
const NamePool::Ptr & | namePool, | ||
const ReportContext::Ptr & | context, | ||
const SourceLocationReflection *const | reflection | ||
) | const |
Returns whether this field is equal to the other
field.
Equal means that both have the same type and there content is equal in the types value space.
Definition at line 67 of file qxsdidchelper.cpp.
QXmlItem FieldNode::item | ( | ) | const |
|
private |
Definition at line 113 of file qxsdidchelper_p.h.
Referenced by isEqualTo().
|
private |
Definition at line 112 of file qxsdidchelper_p.h.
|
private |
Definition at line 114 of file qxsdidchelper_p.h.
Referenced by isEqualTo().