Qt 4.8
|
Represents instances of derived xs:string
types, such as xs:normalizedString
.
More...
#include <qderivedstring_p.h>
Public Functions | |
virtual bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &) const |
virtual QString | stringValue () const |
virtual ItemType::Ptr | type () const |
Public Functions inherited from QPatternist::AtomicValue | |
virtual bool | hasError () const |
virtual | ~AtomicValue () |
Public Functions inherited from QSharedData | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Public Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
const TCastTarget * | as () const |
TCastTarget * | as () |
Static Public Functions | |
static AtomicValue::Ptr | fromLexical (const NamePool::Ptr &np, const QString &lexical) |
static AtomicValue::Ptr | fromValue (const QString &value) |
Static Public Functions inherited from QPatternist::AtomicValue | |
static ItemType::Ptr | qtToXDMType (const QXmlItem &item) |
static QVariant | toQt (const AtomicValue *const value) |
static QVariant | toQt (const AtomicValue::Ptr &value) |
static Item | toXDM (const QVariant &value) |
Private Functions | |
DerivedString (const QString &value) | |
Static Private Functions | |
static QString | attributeNormalize (const QString &input) |
Performs attribute value normalization as if input was not from a CDATA section. More... | |
static AtomicValue::Ptr | error (const NamePool::Ptr &np, const QString &invalidValue) |
static bool | isNameChar (const QChar &ch) |
This is an incomplete test for whether ch conforms to the XML 1.0 NameChar production. More... | |
static bool | isValidName (const QString &input) |
static bool | isValidNMTOKEN (const QString &input) |
static ItemType::Ptr | itemType () |
Properties | |
const QString | m_value |
Additional Inherited Members | |
Public Types inherited from QPatternist::AtomicValue | |
typedef QList< AtomicValue::Ptr > | List |
typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Protected Functions inherited from QPatternist::AtomicValue | |
AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
CppCastingHelper () | |
Represents instances of derived xs:string
types, such as xs:normalizedString
.
Whitespace is a significant part for creating values from the lexical space. Of course the specification is tricky here. Here's some pointers:
Definition at line 95 of file qderivedstring_p.h.
|
inlineprivate |
Definition at line 120 of file qderivedstring_p.h.
Referenced by QPatternist::DerivedString< TypeToken >::fromLexical(), and QPatternist::DerivedString< TypeToken >::fromValue().
|
inlinestaticprivate |
Performs attribute value normalization as if input
was not from a CDATA
section.
Each whitespace character in input
that's not a space, such as tab or new line character, is replaced with a space. This algorithm differs from QString::simplified() in that it doesn't collapse subsequent whitespace characters to a single one, or remove trailing and leading space.
Definition at line 209 of file qderivedstring_p.h.
Referenced by QPatternist::DerivedString< TypeToken >::fromLexical().
|
inlinestaticprivate |
Definition at line 226 of file qderivedstring_p.h.
Referenced by QPatternist::DerivedString< TypeToken >::fromLexical().
|
inlinevirtual |
Always fails by issuing the type error ReportContext::FORG0006. Sub-classes whose represented type do allow EBV to be extracted from, must thus re-implement this function.
Reimplemented from QPatternist::AtomicValue.
Definition at line 325 of file qderivedstring_p.h.
|
inlinestatic |
Constructs an instance from the lexical representation lexical
.
Definition at line 251 of file qderivedstring_p.h.
Referenced by QPatternist::ToStringCaster< DerivedType >::castFrom(), QPatternist::AnyToDerivedStringCaster< type >::castFrom(), QPatternist::XsdTypeChecker::checkConstrainingFacetsDouble(), QPatternist::XsdTypeChecker::checkConstrainingFacetsDuration(), QPatternist::XsdTypeChecker::checkConstrainingFacetsSignedInteger(), QPatternist::XsdTypeChecker::checkConstrainingFacetsString(), QPatternist::XsdTypeChecker::checkConstrainingFacetsUnion(), QPatternist::XsdTypeChecker::checkConstrainingFacetsUnsignedInteger(), QPatternist::FieldNode::isEqualTo(), QPatternist::XsdSchemaParser::parseEnumerationFacet(), QPatternist::XsdSchemaParser::parseMaxExclusiveFacet(), QPatternist::XsdSchemaParser::parseMaxInclusiveFacet(), QPatternist::XsdSchemaParser::parseMinExclusiveFacet(), QPatternist::XsdSchemaParser::parseMinInclusiveFacet(), QPatternist::XsdSchemaParser::parseNotation(), QPatternist::XsdSchemaParser::parsePatternFacet(), QPatternist::XsdSchemaParser::parseWhiteSpaceFacet(), QPatternist::XsdSchemaParser::validateIdAttribute(), and QPatternist::XsdTypeChecker::valuesAreEqual().
|
inlinestatic |
value
. value
must be a canonical value space of the type.If you want cleanup to be performed and/or the lexical space checked, use fromLexical().
Definition at line 242 of file qderivedstring_p.h.
|
inlinestaticprivate |
This is an incomplete test for whether ch
conforms to the XML 1.0 NameChar production.
Definition at line 128 of file qderivedstring_p.h.
Referenced by QPatternist::DerivedString< TypeToken >::isValidName(), and QPatternist::DerivedString< TypeToken >::isValidNMTOKEN().
|
inlinestaticprivate |
true
if input
is a valid xs:Name
. Definition at line 143 of file qderivedstring_p.h.
Referenced by QPatternist::DerivedString< TypeToken >::fromLexical().
|
inlinestaticprivate |
true
if input
conforms to the XML 1.0 Nmtoken
product.Definition at line 180 of file qderivedstring_p.h.
Referenced by QPatternist::DerivedString< TypeToken >::fromLexical().
|
inlinestaticprivate |
Definition at line 98 of file qderivedstring_p.h.
Referenced by QPatternist::DerivedString< TypeToken >::error(), and QPatternist::DerivedString< TypeToken >::type().
|
inlinevirtual |
|
inlinevirtual |
Implements QPatternist::AtomicValue.
Definition at line 330 of file qderivedstring_p.h.
|
private |
Definition at line 118 of file qderivedstring_p.h.
Referenced by QPatternist::DerivedString< TypeToken >::stringValue().