Qt 4.8
|
Base class for all classes representing atomic values. More...
#include <qitem_p.h>
Public Types | |
typedef QList< AtomicValue::Ptr > | List |
typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Functions | |
virtual bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &context) const |
virtual bool | hasError () const |
virtual QString | stringValue () const =0 |
virtual ItemType::Ptr | type () const =0 |
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 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) |
Protected Functions | |
AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
CppCastingHelper () | |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Base class for all classes representing atomic values.
Instantiating AtomicValues sub classes from a value of somekind, for a certain type is done in three different ways:
For types that does not distinguish the value space and lexical space, such as xs:string
, only the fromValue() function exist, and fromLexical() is omitted.
A list if smart pointers wrapping AtomicValue instances.
A smart pointer wrapping AtomicValue instances.
|
virtual |
Definition at line 73 of file qatomicvalue.cpp.
|
inlineprotected |
|
virtual |
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 in QPatternist::DerivedInteger< DerivedType >, QPatternist::DerivedString< DerivedType >, QPatternist::DerivedString< TypeLanguage >, QPatternist::DerivedString< TypeID >, QPatternist::DerivedString< TypeToken >, QPatternist::Boolean, QPatternist::AtomicString, QPatternist::Decimal, QPatternist::AbstractFloat< isDouble >, and QPatternist::Integer.
Definition at line 77 of file qatomicvalue.cpp.
Referenced by QPatternist::BooleanToDecimalCaster::castFrom(), and QPatternist::BooleanToIntegerCaster::castFrom().
|
virtual |
Determines whether this atomic value has an error. This is used for implementing casting.
false
Reimplemented in QPatternist::SortTuple, and QPatternist::ValidationError.
Definition at line 87 of file qatomicvalue.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkConstrainingFacets(), QPatternist::XsdSchemaHelper::constructAndCompare(), QPatternist::NumberFN::evaluateSingleton(), QPatternist::XsdTypeChecker::isValidString(), isValidUri(), QPatternist::XsdSchemaParser::parseComplexContent(), QPatternist::XsdSchemaParser::parseDefaultOpenContent(), QPatternist::XsdSchemaParser::parseEnumerationFacet(), QPatternist::XsdSchemaParser::parseFractionDigitsFacet(), QPatternist::XsdSchemaParser::parseGlobalComplexType(), QPatternist::XsdSchemaParser::parseGlobalElement(), QPatternist::XsdSchemaParser::parseLengthFacet(), QPatternist::XsdSchemaParser::parseLocalComplexType(), QPatternist::XsdSchemaParser::parseLocalElement(), QPatternist::XsdSchemaParser::parseMaxExclusiveFacet(), QPatternist::XsdSchemaParser::parseMaxInclusiveFacet(), QPatternist::XsdSchemaParser::parseMaxLengthFacet(), QPatternist::XsdSchemaParser::parseMinExclusiveFacet(), QPatternist::XsdSchemaParser::parseMinInclusiveFacet(), QPatternist::XsdSchemaParser::parseMinLengthFacet(), QPatternist::XsdSchemaParser::parseMinMaxConstraint(), QPatternist::XsdSchemaParser::parseNotation(), QPatternist::XsdSchemaParser::parsePatternFacet(), QPatternist::XsdSchemaParser::parseTotalDigitsFacet(), QPatternist::XsdSchemaParser::parseWhiteSpaceFacet(), QPatternist::XsdSchemaParser::readXPathExpression(), QPatternist::XsdValidatingInstanceReader::validateElement(), and QPatternist::XsdSchemaParser::validateIdAttribute().
|
static |
Definition at line 192 of file qatomicvalue.cpp.
Referenced by QPatternist::VariableLoader::announceExternalVariable(), QXmlQueryPrivate::staticContext(), and toQt().
|
pure virtual |
Implemented in QPatternist::DerivedInteger< DerivedType >, QPatternist::DerivedString< DerivedType >, QPatternist::DerivedString< TypeLanguage >, QPatternist::DerivedString< TypeID >, QPatternist::DerivedString< TypeToken >, QPatternist::AbstractFloat< isDouble >, QPatternist::AtomicString, QPatternist::SortTuple, QPatternist::ValidationError, QPatternist::Decimal, QPatternist::DayTimeDuration, QPatternist::Integer, QPatternist::QNameValue, QPatternist::Duration, QPatternist::Boolean, QPatternist::DateTime, QPatternist::Base64Binary, QPatternist::SchemaTime, QPatternist::YearMonthDuration, QPatternist::GMonthDay, QPatternist::Date, QPatternist::GDay, QPatternist::GMonth, QPatternist::GYear, QPatternist::GYearMonth, and QPatternist::HexBinary.
Referenced by QPatternist::XsdTypeChecker::checkConstrainingFacets(), QPatternist::XsdSchemaChecker::checkConstrainingFacets(), QPatternist::ComparisonFactory::constructAndCompare(), QPatternist::XsdSchemaHelper::constructAndCompare(), QPatternist::XsdTypeChecker::normalizedValue(), QPatternist::Boolean::stringValue(), and toQt().
|
static |
Converts value
to a QVariant.
Definition at line 92 of file qatomicvalue.cpp.
Referenced by QAbstractXmlReceiver::item(), QXmlItem::toAtomicValue(), and toQt().
|
inlinestatic |
Definition at line 157 of file qitem_p.h.
Definition at line 132 of file qatomicvalue.cpp.
Referenced by QPatternist::VariantListIterator::inputToOutputItem(), QPatternist::VariableLoader::itemForName(), QXmlItem::QXmlItem(), and toQt().
|
pure virtual |
Implemented in QPatternist::DerivedInteger< DerivedType >, QPatternist::DerivedString< DerivedType >, QPatternist::DerivedString< TypeLanguage >, QPatternist::DerivedString< TypeID >, QPatternist::DerivedString< TypeToken >, QPatternist::AnyURI, QPatternist::AbstractFloat< isDouble >, QPatternist::SortTuple, QPatternist::AtomicString, QPatternist::Boolean, QPatternist::Decimal, QPatternist::Integer, QPatternist::ValidationError, QPatternist::DayTimeDuration, QPatternist::QNameValue, QPatternist::Duration, QPatternist::DateTime, QPatternist::Base64Binary, QPatternist::UntypedAtomic, QPatternist::SchemaTime, QPatternist::YearMonthDuration, QPatternist::HexBinary, QPatternist::Date, QPatternist::GDay, QPatternist::GMonth, QPatternist::GMonthDay, QPatternist::GYear, and QPatternist::GYearMonth.
Referenced by evaluateEBV(), and toQt().