Qt 4.8
Public Types | Public Functions | Protected Functions | Properties | Friends | List of all members
QPatternist::BuiltinAtomicType Class Reference

Instances of this class represents types that are sub-classes of xs:anyAtomicType. More...

#include <qbuiltinatomictype_p.h>

Inheritance diagram for QPatternist::BuiltinAtomicType:
QPatternist::AtomicType QPatternist::ItemType QPatternist::AnySimpleType QSharedData QPatternist::AnyType QPatternist::SchemaType QPatternist::SchemaComponent QSharedData QPatternist::AnyAtomicType QPatternist::AnyURIType QPatternist::Base64BinaryType QPatternist::BooleanType QPatternist::DateTimeType QPatternist::DateType QPatternist::DayTimeDurationType QPatternist::DecimalType QPatternist::DoubleType QPatternist::DurationType QPatternist::FloatType QPatternist::GDayType QPatternist::GMonthDayType QPatternist::GMonthType QPatternist::GYearMonthType QPatternist::GYearType QPatternist::HexBinaryType QPatternist::IntegerType QPatternist::NOTATIONType QPatternist::QNameType QPatternist::SchemaTimeType QPatternist::StringType QPatternist::UntypedAtomicType QPatternist::YearMonthDurationType

Public Types

typedef QExplicitlySharedDataPointer< BuiltinAtomicTypePtr
 
- Public Types inherited from QPatternist::AtomicType
typedef QExplicitlySharedDataPointer< AtomicTypePtr
 
- Public Types inherited from QPatternist::ItemType
enum  Category { NodeNameTest = 1, Other = 2 }
 
enum  InstanceOf { ClassLocalNameTest, ClassNamespaceNameTest, ClassQNameTest, ClassOther }
 
typedef QList< ItemType::PtrList
 
typedef QExplicitlySharedDataPointer< ItemTypePtr
 
- Public Types inherited from QPatternist::AnySimpleType
typedef QList< AnySimpleType::PtrList
 
typedef QExplicitlySharedDataPointer< AnySimpleTypePtr
 
- Public Types inherited from QPatternist::AnyType
typedef QExplicitlySharedDataPointer< AnyTypePtr
 
- Public Types inherited from QPatternist::SchemaType
enum  DerivationConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, ListConstraint = 4, UnionConstraint = 8 }
 
enum  DerivationMethod {
  DerivationRestriction = 1, DerivationExtension = 2, DerivationUnion = 4, DerivationList = 8,
  NoDerivation = 16
}
 
typedef QHash< QXmlName, SchemaType::PtrHash
 
typedef QList< SchemaType::PtrList
 
typedef QExplicitlySharedDataPointer< SchemaTypePtr
 
enum  TypeCategory {
  None = 0, SimpleTypeAtomic, SimpleTypeList, SimpleTypeUnion,
  ComplexType
}
 

Public Functions

virtual AtomicCasterLocator::Ptr casterLocator () const
 
virtual AtomicComparatorLocator::Ptr comparatorLocator () const
 
virtual bool isAbstract () const
 
virtual AtomicMathematicianLocator::Ptr mathematicianLocator () const
 
virtual SchemaType::Ptr wxsSuperType () const
 
virtual ItemType::Ptr xdtSuperType () const
 
- Public Functions inherited from QPatternist::AtomicType
virtual AtomicTypeVisitorResult::Ptr accept (const QExplicitlySharedDataPointer< AtomicTypeVisitor > &visitor, const SourceLocationReflection *const) const =0
 
virtual AtomicTypeVisitorResult::Ptr accept (const ParameterizedAtomicTypeVisitor::Ptr &visitor, const qint16 param, const SourceLocationReflection *const) const =0
 
virtual ItemType::Ptr atomizedType () const
 
virtual TypeCategory category () const
 
virtual DerivationMethod derivationMethod () const
 
virtual QString displayName (const NamePool::Ptr &np) const
 
virtual bool isAtomicType () const
 
virtual bool isNodeType () const
 
virtual bool itemMatches (const Item &item) const
 
virtual bool xdtTypeMatches (const ItemType::Ptr &other) const
 
virtual ~AtomicType ()
 
- Public Functions inherited from QPatternist::ItemType
virtual InstanceOf instanceOf () const
 
 ItemType ()
 
virtual Category itemTypeCategory () const
 
bool operator!= (const ItemType &other) const
 
virtual bool operator== (const ItemType &other) const
 
virtual const ItemTypeoperator| (const ItemType &other) const
 
virtual ~ItemType ()
 
- 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::AnySimpleType
virtual bool isComplexType () const
 
virtual bool isSimpleType () const
 
virtual QXmlName name (const NamePool::Ptr &np) const
 Returns the name of the type. More...
 
virtual ~AnySimpleType ()
 
- Public Functions inherited from QPatternist::AnyType
virtual DerivationConstraints derivationConstraints () const
 
virtual bool wxsTypeMatches (const SchemaType::Ptr &other) const
 
virtual ~AnyType ()
 
- Public Functions inherited from QPatternist::SchemaType
virtual bool isDefinedBySchema () const
 
 SchemaType ()
 
virtual ~SchemaType ()
 
- Public Functions inherited from QPatternist::SchemaComponent
 SchemaComponent ()
 
virtual ~SchemaComponent ()
 

Protected Functions

 BuiltinAtomicType (const AtomicType::Ptr &baseType, const AtomicComparatorLocator::Ptr &comp, const AtomicMathematicianLocator::Ptr &mather, const AtomicCasterLocator::Ptr &casterLocator)
 
- Protected Functions inherited from QPatternist::AtomicType
 AtomicType ()
 
- Protected Functions inherited from QPatternist::AnySimpleType
 AnySimpleType ()
 
- Protected Functions inherited from QPatternist::AnyType
 AnyType ()
 This constructor is protected, because this class must be sub-classed. More...
 

Properties

const AtomicCasterLocator::Ptr m_casterLocator
 
const AtomicComparatorLocator::Ptr m_comparatorLocator
 
const AtomicMathematicianLocator::Ptr m_mathematicianLocator
 
const AtomicType::Ptr m_superType
 

Friends

class BuiltinTypes
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Instances of this class represents types that are sub-classes of xs:anyAtomicType.

Retrieving instances of builtin types is done via BuiltinTypesFactory::createSchemaType(), not by instantiating this class manually.

Author
Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com

Definition at line 75 of file qbuiltinatomictype_p.h.

Typedefs

◆ Ptr

Definition at line 79 of file qbuiltinatomictype_p.h.

Constructors and Destructors

◆ BuiltinAtomicType()

BuiltinAtomicType::BuiltinAtomicType ( const AtomicType::Ptr baseType,
const AtomicComparatorLocator::Ptr comp,
const AtomicMathematicianLocator::Ptr mather,
const AtomicCasterLocator::Ptr casterLocator 
)
protected
Parameters
baseTypethe type that is the super type of the constructed atomic type. In the case of AnyAtomicType, null is passed.
compthe AtomicComparatorLocator this type should return. May be null.
mathersimilar to comp, this is the AtomicMathematicianLocator that's appropriate for this type May be null.
casterLocatorthe CasterLocator that locates classes performing casting with this type. May be null.

Definition at line 53 of file qbuiltinatomictype.cpp.

57  : m_superType(base),
58  m_comparatorLocator(comp),
59  m_mathematicianLocator(mather),
60  m_casterLocator(casterlocator)
61 {
62 }
static const uint base
Definition: qurl.cpp:268
const AtomicMathematicianLocator::Ptr m_mathematicianLocator
const AtomicCasterLocator::Ptr m_casterLocator
const AtomicComparatorLocator::Ptr m_comparatorLocator

Functions

◆ casterLocator()

AtomicCasterLocator::Ptr BuiltinAtomicType::casterLocator ( ) const
virtual

Implements QPatternist::AtomicType.

Definition at line 89 of file qbuiltinatomictype.cpp.

90 {
91  return m_casterLocator;
92 }
const AtomicCasterLocator::Ptr m_casterLocator

◆ comparatorLocator()

AtomicComparatorLocator::Ptr BuiltinAtomicType::comparatorLocator ( ) const
virtual

Implements QPatternist::AtomicType.

Definition at line 79 of file qbuiltinatomictype.cpp.

80 {
81  return m_comparatorLocator;
82 }
const AtomicComparatorLocator::Ptr m_comparatorLocator

◆ isAbstract()

bool BuiltinAtomicType::isAbstract ( ) const
virtual
Returns
always false

Reimplemented from QPatternist::AnyType.

Reimplemented in QPatternist::NOTATIONType, and QPatternist::AnyAtomicType.

Definition at line 74 of file qbuiltinatomictype.cpp.

75 {
76  return false;
77 }

◆ mathematicianLocator()

AtomicMathematicianLocator::Ptr BuiltinAtomicType::mathematicianLocator ( ) const
virtual

Implements QPatternist::AtomicType.

Definition at line 84 of file qbuiltinatomictype.cpp.

85 {
87 }
const AtomicMathematicianLocator::Ptr m_mathematicianLocator

◆ wxsSuperType()

SchemaType::Ptr BuiltinAtomicType::wxsSuperType ( ) const
virtual
Returns
the base type as specified in the constructors baseType argument.

Reimplemented from QPatternist::AnySimpleType.

Reimplemented in QPatternist::AnyAtomicType.

Definition at line 64 of file qbuiltinatomictype.cpp.

65 {
66  return m_superType;
67 }

◆ xdtSuperType()

ItemType::Ptr BuiltinAtomicType::xdtSuperType ( ) const
virtual
Returns
the same type as wxsSuperType(), except for the type xs:anyAtomicType, which returns item()

Implements QPatternist::ItemType.

Reimplemented in QPatternist::AnyAtomicType.

Definition at line 69 of file qbuiltinatomictype.cpp.

70 {
71  return m_superType;
72 }

Friends and Related Functions

◆ BuiltinTypes

friend class BuiltinTypes
friend

Definition at line 102 of file qbuiltinatomictype_p.h.

Properties

◆ m_casterLocator

const AtomicCasterLocator::Ptr QPatternist::BuiltinAtomicType::m_casterLocator
private

Definition at line 122 of file qbuiltinatomictype_p.h.

Referenced by casterLocator().

◆ m_comparatorLocator

const AtomicComparatorLocator::Ptr QPatternist::BuiltinAtomicType::m_comparatorLocator
private

Definition at line 120 of file qbuiltinatomictype_p.h.

Referenced by comparatorLocator().

◆ m_mathematicianLocator

const AtomicMathematicianLocator::Ptr QPatternist::BuiltinAtomicType::m_mathematicianLocator
private

Definition at line 121 of file qbuiltinatomictype_p.h.

Referenced by mathematicianLocator().

◆ m_superType

const AtomicType::Ptr QPatternist::BuiltinAtomicType::m_superType
private

Definition at line 119 of file qbuiltinatomictype_p.h.

Referenced by wxsSuperType(), and xdtSuperType().


The documentation for this class was generated from the following files: