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

Represents the complex W3C XML Schema type xs:untyped. More...

#include <quntyped_p.h>

Inheritance diagram for QPatternist::Untyped:
QPatternist::AnyType QPatternist::SchemaType QPatternist::SchemaComponent QSharedData

Public Types

typedef QExplicitlySharedDataPointer< UntypedPtr
 
- 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 ItemType::Ptr atomizedType () const
 
virtual TypeCategory category () const
 
virtual DerivationMethod derivationMethod () const
 
virtual QXmlName name (const NamePool::Ptr &np) const
 Returns the name of the type. More...
 
virtual SchemaType::Ptr wxsSuperType () const
 
- Public Functions inherited from QPatternist::AnyType
virtual DerivationConstraints derivationConstraints () const
 
virtual QString displayName (const NamePool::Ptr &np) const
 
virtual bool isAbstract () const
 
virtual bool isComplexType () const
 
virtual bool wxsTypeMatches (const SchemaType::Ptr &other) const
 
virtual ~AnyType ()
 
- Public Functions inherited from QPatternist::SchemaType
virtual bool isDefinedBySchema () const
 
virtual bool isSimpleType () const
 
 SchemaType ()
 
virtual ~SchemaType ()
 
- Public Functions inherited from QPatternist::SchemaComponent
 SchemaComponent ()
 
virtual ~SchemaComponent ()
 
- 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...
 

Protected Functions

 Untyped ()
 
- Protected Functions inherited from QPatternist::AnyType
 AnyType ()
 This constructor is protected, because this class must be sub-classed. More...
 

Friends

class BuiltinTypes
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Represents the complex W3C XML Schema type xs:untyped.

Author
Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com
See also
XQuery 1.0 and XPath 2.0 Data Model, 2.6.2 Predefined Types

Definition at line 73 of file quntyped_p.h.

Typedefs

◆ Ptr

Definition at line 77 of file quntyped_p.h.

Constructors and Destructors

◆ Untyped()

Untyped::Untyped ( )
protected

Definition at line 50 of file quntyped.cpp.

51 {
52 }

Functions

◆ atomizedType()

ItemType::Ptr Untyped::atomizedType ( ) const
virtual
Returns
always xs:untypedAtomic

Definition at line 64 of file quntyped.cpp.

65 {
67 }
static const AtomicType::Ptr xsUntypedAtomic

◆ category()

SchemaType::TypeCategory Untyped::category ( ) const
virtual
Returns
always SchemaType::ComplexType

Reimplemented from QPatternist::AnyType.

Definition at line 69 of file quntyped.cpp.

◆ derivationMethod()

SchemaType::DerivationMethod Untyped::derivationMethod ( ) const
virtual
Returns
always NoDerivation

Reimplemented from QPatternist::AnyType.

Definition at line 74 of file quntyped.cpp.

◆ name()

QXmlName Untyped::name ( const NamePool::Ptr np) const
virtual

Returns the name of the type.

The reason to why we take the name pool argument, is that the basic types, xs:anySimpleType and so on, are stored globally in BuiltinTypes and ComonSequenceTypes, and therefore cannot be tied to a certain name pool. Type instances that knows they always will be used with a certain name pool, can therefore ignore np and return a QXmlName instance stored as a member.

If the type code was refactored to not be store globally and therefore by design would be tied to a name pool, this argument could be removed.

Reimplemented from QPatternist::AnyType.

Definition at line 59 of file quntyped.cpp.

60 {
61  return np->allocateQName(StandardNamespaces::xs, QLatin1String("untyped"));
62 }
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QXmlName allocateQName(const QString &uri, const QString &localName, const QString &prefix=QString())
Definition: qnamepool.cpp:251

◆ wxsSuperType()

SchemaType::Ptr Untyped::wxsSuperType ( ) const
virtual
Returns
always BuiltinTypes::xsAnyType.

Reimplemented from QPatternist::AnyType.

Definition at line 54 of file quntyped.cpp.

55 {
57 }
static const SchemaType::Ptr xsAnyType

Friends and Related Functions

◆ BuiltinTypes

friend class BuiltinTypes
friend

Definition at line 102 of file quntyped_p.h.


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