Qt 4.8
|
Implements the value instance of the xs:boolean
type.
More...
#include <qboolean_p.h>
Public Types | |
typedef AtomicValue::Ptr | Ptr |
Public Types inherited from QPatternist::AtomicValue | |
typedef QList< AtomicValue::Ptr > | List |
typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Functions | |
virtual bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &) const |
virtual QString | stringValue () const |
virtual ItemType::Ptr | type () const |
bool | value () 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 bool | evaluateEBV (const Item::Iterator::Ptr &e, const QExplicitlySharedDataPointer< DynamicContext > &) |
static bool | evaluateEBV (const Item &first, const Item::Iterator::Ptr &e, const QExplicitlySharedDataPointer< DynamicContext > &) |
static bool | evaluateEBV (const Item &item, const QExplicitlySharedDataPointer< DynamicContext > &context) |
static AtomicValue::Ptr | fromLexical (const QString &val) |
static Boolean::Ptr | fromValue (const bool 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) |
Protected Functions | |
Boolean (const bool value) | |
Protected Functions inherited from QPatternist::AtomicValue | |
AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
CppCastingHelper () | |
Properties | |
const bool | m_value |
Friends | |
class | CommonValues |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Implements the value instance of the xs:boolean
type.
Definition at line 69 of file qboolean_p.h.
Definition at line 72 of file qboolean_p.h.
|
protected |
Definition at line 99 of file qboolean.cpp.
|
static |
Definition at line 55 of file qboolean.cpp.
Referenced by evaluateEBV(), QPatternist::RangeVariableReference::evaluateEBV(), QPatternist::Literal::evaluateEBV(), QPatternist::ExternalVariableLoader::evaluateEBV(), QPatternist::Expression::evaluateEBV(), and QPatternist::GenericPredicate::mapToItem().
|
static |
Definition at line 61 of file qboolean.cpp.
|
static |
Definition at line 88 of file qboolean.cpp.
|
virtual |
Get the Effective Boolean Value of this boolean value. For xs:boolean
, this is simply the value.
Reimplemented from QPatternist::AtomicValue.
Definition at line 110 of file qboolean.cpp.
|
static |
Creates a boolean value from a lexical representation. "true" and "1" becomes true
, while "false" and "0" becomes false
.
Definition at line 120 of file qboolean.cpp.
Referenced by QPatternist::StringToBooleanCaster::castFrom(), QPatternist::XsdSchemaParser::parseComplexContent(), QPatternist::XsdSchemaParser::parseDefaultOpenContent(), 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::parseTotalDigitsFacet(), QPatternist::XsdSchemaParser::parseWhiteSpaceFacet(), and QPatternist::XsdValidatingInstanceReader::validateElement().
|
static |
value
. Use True() or False() if you already know what value you need. Definition at line 115 of file qboolean.cpp.
Referenced by QPatternist::FunctionAvailableFN::evaluateSingleton(), QPatternist::TypeAvailableFN::evaluateSingleton(), QPatternist::ContainsFN::evaluateSingleton(), QPatternist::CodepointEqualFN::evaluateSingleton(), QPatternist::MatchesFN::evaluateSingleton(), QPatternist::ValueComparison::evaluateSingleton(), QPatternist::StartsWithFN::evaluateSingleton(), QPatternist::EndsWithFN::evaluateSingleton(), QPatternist::ExternalVariableLoader::evaluateSingleton(), QPatternist::Expression::evaluateSingleton(), and QPatternist::AtomicValue::toXDM().
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 103 of file qboolean.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 132 of file qboolean.cpp.
|
inline |
Definition at line 109 of file qboolean_p.h.
Referenced by QPatternist::XsdTypeChecker::checkConstrainingFacets(), QPatternist::XsdSchemaParser::parseFractionDigitsFacet(), QPatternist::XsdSchemaParser::parseGlobalComplexType(), QPatternist::XsdSchemaParser::parseGlobalElement(), QPatternist::XsdSchemaParser::parseLengthFacet(), QPatternist::XsdSchemaParser::parseLocalElement(), QPatternist::XsdSchemaParser::parseMaxExclusiveFacet(), QPatternist::XsdSchemaParser::parseMaxInclusiveFacet(), QPatternist::XsdSchemaParser::parseMaxLengthFacet(), QPatternist::XsdSchemaParser::parseMinExclusiveFacet(), QPatternist::XsdSchemaParser::parseMinInclusiveFacet(), QPatternist::XsdSchemaParser::parseMinLengthFacet(), QPatternist::XsdSchemaParser::parseTotalDigitsFacet(), QPatternist::XsdSchemaParser::parseWhiteSpaceFacet(), QPatternist::AtomicValue::toQt(), and QPatternist::XsdValidatingInstanceReader::validateElement().
|
friend |
Definition at line 115 of file qboolean_p.h.
|
private |
Definition at line 119 of file qboolean_p.h.
Referenced by evaluateEBV(), and stringValue().