![]() |
Qt 4.8
|
Used for signalling casting errors. More...
#include <qvalidationerror_p.h>
Public Types | |
| typedef QExplicitlySharedDataPointer< ValidationError > | Ptr |
Public Types inherited from QPatternist::AtomicValue | |
| typedef QList< AtomicValue::Ptr > | List |
| typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Functions | |
| ReportContext::ErrorCode | errorCode () const |
| virtual bool | hasError () const |
| QString | message () const |
| virtual QString | stringValue () const |
| virtual ItemType::Ptr | type () const |
Public Functions inherited from QPatternist::AtomicValue | |
| virtual bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &context) 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 | createError (const QString &description=QString(), const ReportContext::ErrorCode=ReportContext::FORG0001) |
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 | |
| ValidationError (const QString &msg, const ReportContext::ErrorCode code) | |
Protected Functions inherited from QPatternist::AtomicValue | |
| AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
| CppCastingHelper () | |
Protected Variables | |
| const ReportContext::ErrorCode | m_code |
| const QString | m_message |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
| QAtomicInt | ref |
Used for signalling casting errors.
Definition at line 70 of file qvalidationerror_p.h.
Definition at line 73 of file qvalidationerror_p.h.
|
protected |
Definition at line 49 of file qvalidationerror.cpp.
Referenced by createError().
|
static |
Creates a ValidationError instance that represents a type error.
| description | A detailed description of what that made the cast fail, if any. If null, which QString() creates, a generic message will be used. |
Definition at line 55 of file qvalidationerror.cpp.
Referenced by QPatternist::NumericToDecimalCaster< IsInteger >::castFrom(), QPatternist::NumericToDerivedIntegerCaster< type >::castFrom(), QPatternist::AbstractDateTime::create(), QPatternist::DerivedString< TypeToken >::error(), QPatternist::Base64Binary::fromLexical(), QPatternist::AbstractFloat< isDouble >::fromLexical(), QPatternist::Integer::fromLexical(), QPatternist::HexBinary::fromLexical(), QPatternist::Decimal::fromLexical(), QPatternist::Boolean::fromLexical(), QPatternist::AnyURI::fromLexical(), QPatternist::XsdTypeChecker::fromLexical(), QPatternist::DerivedInteger< DerivedType >::fromLexical(), and QPatternist::DerivedInteger< DerivedType >::fromValue().
| ReportContext::ErrorCode ValidationError::errorCode | ( | ) | const |
Definition at line 85 of file qvalidationerror.cpp.
|
virtual |
true Reimplemented from QPatternist::AtomicValue.
Definition at line 61 of file qvalidationerror.cpp.
| QString ValidationError::message | ( | ) | const |
A human readable, translated message describing the error.
Definition at line 72 of file qvalidationerror.cpp.
|
virtual |
Always results in an assert crash.
Implements QPatternist::AtomicValue.
Definition at line 66 of file qvalidationerror.cpp.
|
virtual |
Always results in an assert crash.
Implements QPatternist::AtomicValue.
Definition at line 77 of file qvalidationerror.cpp.
|
protected |
Definition at line 115 of file qvalidationerror_p.h.
Referenced by errorCode().
|
protected |
Definition at line 114 of file qvalidationerror_p.h.
Referenced by message().