Qt 4.8
|
Implements the value instance of the xs:dateTime
type.
More...
#include <qschemadatetime_p.h>
Public Types | |
typedef AtomicValue::Ptr | Ptr |
Public Types inherited from QPatternist::AbstractDateTime | |
enum | { DefaultYear = 2000, DefaultMonth = 1, DefaultDay = 1 } |
typedef QExplicitlySharedDataPointer< AbstractDateTime > | Ptr |
Public Types inherited from QPatternist::AtomicValue | |
typedef QList< AtomicValue::Ptr > | List |
typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Functions | |
virtual Item | fromValue (const QDateTime &dt) const |
virtual QString | stringValue () const |
virtual ItemType::Ptr | type () const |
Public Functions inherited from QPatternist::AbstractDateTime | |
AbstractDateTime (const QDateTime &dateTime) | |
QString | dateToString () const |
QString | timeToString () const |
const QDateTime & | toDateTime () const |
Public Functions inherited from QPatternist::AtomicValue | |
virtual bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &context) const |
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 DateTime::Ptr | fromDateTime (const QDateTime &dt) |
static DateTime::Ptr | fromLexical (const QString &string) |
Static Public Functions inherited from QPatternist::AbstractDateTime | |
static bool | isRangeValid (const QDate &date, QString &message) |
static QString | serializeMSeconds (const MSecondProperty msecs) |
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 | |
DateTime (const QDateTime &dateTime) | |
Protected Functions inherited from QPatternist::AbstractDateTime | |
QString | zoneOffsetToString () const |
Protected Functions inherited from QPatternist::AtomicValue | |
AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
CppCastingHelper () | |
Friends | |
class | CommonValues |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Static Protected Functions inherited from QPatternist::AbstractDateTime | |
static void | copyTimeSpec (const QDateTime &from, QDateTime &to) |
Makes the QDateTime::timeSpec() and QDateTime::zoneOffset() of ot * consistent to from . More... | |
static QDateTime | create (AtomicValue::Ptr &errorMessage, const QString &lexicalSource, const CaptureTable &captTable) |
Protected Variables inherited from QPatternist::AbstractDateTime | |
const QDateTime | m_dateTime |
Implements the value instance of the xs:dateTime
type.
Definition at line 76 of file qschemadatetime_p.h.
Definition at line 79 of file qschemadatetime_p.h.
|
protected |
Definition at line 51 of file qschemadatetime.cpp.
Referenced by fromDateTime(), and fromLexical().
|
static |
Definition at line 95 of file qschemadatetime.cpp.
Referenced by QPatternist::AbstractDateTimeToDateTimeCaster::castFrom(), QPatternist::AdjustDateTimeToTimezoneFN::createValue(), QPatternist::DateTimeFN::evaluateSingleton(), QPatternist::CurrentDateTimeFN::evaluateSingleton(), fromValue(), and QPatternist::AtomicValue::toXDM().
|
static |
Creates an instance from the lexical representation string
.
Definition at line 55 of file qschemadatetime.cpp.
Referenced by QPatternist::StringToDateTimeCaster::castFrom().
A factory function for creating instances that are of the dynamic type of this class, that represents dt
.
The default implementation performs an assert() call. This function is not pure virtual because all sub-classes do not use it.
Reimplemented from QPatternist::AbstractDateTime.
Definition at line 101 of file qschemadatetime.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 107 of file qschemadatetime.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 112 of file qschemadatetime.cpp.
|
friend |
Definition at line 91 of file qschemadatetime_p.h.