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

Represents the item() item type. More...

#include <qanyitemtype_p.h>

Inheritance diagram for QPatternist::AnyItemType:
QPatternist::ItemType QSharedData

Public Functions

virtual ItemType::Ptr atomizedType () 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 ItemType::Ptr xdtSuperType () const
 
virtual bool xdtTypeMatches (const ItemType::Ptr &type) const
 
- 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...
 

Protected Functions

 AnyItemType ()
 

Friends

class BuiltinTypes
 

Additional Inherited Members

- 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 Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Represents the item() item type.

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

Definition at line 70 of file qanyitemtype_p.h.

Constructors and Destructors

◆ AnyItemType()

AnyItemType::AnyItemType ( )
protected

Definition at line 51 of file qanyitemtype.cpp.

52 {
53 }

Functions

◆ atomizedType()

ItemType::Ptr AnyItemType::atomizedType ( ) const
virtual
Returns
xs:anyAtomicType

Implements QPatternist::ItemType.

Definition at line 85 of file qanyitemtype.cpp.

86 {
88 }
static const AtomicType::Ptr xsAnyAtomicType

◆ displayName()

QString AnyItemType::displayName ( const NamePool::Ptr np) const
virtual
Returns
always "item()"

Implements QPatternist::ItemType.

Definition at line 65 of file qanyitemtype.cpp.

66 {
67  return QLatin1String("item()");
68 }
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString

◆ isAtomicType()

bool AnyItemType::isAtomicType ( ) const
virtual
Returns
always false

Implements QPatternist::ItemType.

Definition at line 80 of file qanyitemtype.cpp.

81 {
82  return false;
83 }

◆ isNodeType()

bool AnyItemType::isNodeType ( ) const
virtual
Returns
always false

Implements QPatternist::ItemType.

Definition at line 75 of file qanyitemtype.cpp.

76 {
77  return false;
78 }

◆ itemMatches()

bool AnyItemType::itemMatches ( const Item item) const
virtual
Returns
always true

Implements QPatternist::ItemType.

Definition at line 55 of file qanyitemtype.cpp.

56 {
57  return true;
58 }

◆ xdtSuperType()

ItemType::Ptr AnyItemType::xdtSuperType ( ) const
virtual
Returns
always 0, item() is the super type in the XPath Data Model hierarchy

Implements QPatternist::ItemType.

Definition at line 70 of file qanyitemtype.cpp.

71 {
72  return ItemType::Ptr();
73 }
QExplicitlySharedDataPointer< ItemType > Ptr
Definition: qitemtype_p.h:88

◆ xdtTypeMatches()

bool AnyItemType::xdtTypeMatches ( const ItemType::Ptr type) const
virtual
Returns
always true

Implements QPatternist::ItemType.

Definition at line 60 of file qanyitemtype.cpp.

61 {
62  return true;
63 }

Friends and Related Functions

◆ BuiltinTypes

friend class BuiltinTypes
friend

Definition at line 110 of file qanyitemtype_p.h.


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