Qt 4.8
|
Represents the node()
item type.
More...
#include <qanynodetype_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< AnyNodeType > | Ptr |
Public Types inherited from QPatternist::ItemType | |
enum | Category { NodeNameTest = 1, Other = 2 } |
enum | InstanceOf { ClassLocalNameTest, ClassNamespaceNameTest, ClassQNameTest, ClassOther } |
typedef QList< ItemType::Ptr > | List |
typedef QExplicitlySharedDataPointer< ItemType > | Ptr |
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 QXmlNodeModelIndex::NodeKind | nodeKind () const |
virtual PatternPriority | patternPriority () const |
virtual ItemType::Ptr | xdtSuperType () const |
virtual bool | xdtTypeMatches (const ItemType::Ptr &other) const |
Returns true if other matches this type. That is, if other is equal to this type or a subtype of this type. More... | |
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 ItemType & | operator| (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 | |
AnyNodeType () | |
Friends | |
class | BuiltinTypes |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Related Functions inherited from QPatternist::ItemType | |
ItemType::Ptr | operator| (const ItemType::Ptr &op1, const ItemType::Ptr &op2) |
void | operator|= (ItemType::Ptr &op1, const ItemType::Ptr &op2) |
Computes the union type of op1 and op2 , and assigns it to op1 . More... | |
Represents the node()
item type.
Definition at line 71 of file qanynodetype_p.h.
Definition at line 75 of file qanynodetype_p.h.
|
inlineprotected |
Definition at line 102 of file qanynodetype_p.h.
|
virtual |
Implements QPatternist::ItemType.
Reimplemented in QPatternist::BuiltinNodeType< kind >, and QPatternist::AbstractNodeTest.
Definition at line 61 of file qanynodetype.cpp.
|
virtual |
Implements QPatternist::ItemType.
Reimplemented in QPatternist::BuiltinNodeType< kind >, QPatternist::LocalNameTest, QPatternist::NamespaceNameTest, and QPatternist::QNameTest.
Definition at line 66 of file qanynodetype.cpp.
|
virtual |
Implements QPatternist::ItemType.
Definition at line 81 of file qanynodetype.cpp.
|
virtual |
Implements QPatternist::ItemType.
Definition at line 76 of file qanynodetype.cpp.
|
virtual |
item | the item that is to be matched. This is guaranteed by the caller to never be null . |
Implements QPatternist::ItemType.
Reimplemented in QPatternist::LocalNameTest, QPatternist::NamespaceNameTest, QPatternist::QNameTest, QPatternist::XSLTNodeTest, and QPatternist::BuiltinNodeType< kind >.
Definition at line 56 of file qanynodetype.cpp.
|
virtual |
Reimplemented in QPatternist::BuiltinNodeType< kind >.
Definition at line 86 of file qanynodetype.cpp.
|
virtual |
Reimplemented in QPatternist::BuiltinNodeType< kind >, QPatternist::QNameTest, QPatternist::LocalNameTest, and QPatternist::NamespaceNameTest.
Definition at line 93 of file qanynodetype.cpp.
|
virtual |
Determines the type's parent type in the XPath Data Model hierarchy. For example, for the type xs:anyAtomicType, the super type in the XPath Data Model is item(), not xs:anySimpleType. SchemaType::xdtSuperType navigates the schema hierarchy.
Implements QPatternist::ItemType.
Reimplemented in QPatternist::BuiltinNodeType< kind >, QPatternist::XSLTNodeTest, and QPatternist::AbstractNodeTest.
Definition at line 71 of file qanynodetype.cpp.
|
virtual |
Returns true
if other
matches this type. That is, if other
is equal to this type or a subtype of this type.
For instance this statements evaluates to true:
but this evaluates to false:
other | the other ItemType that is to be matched. This is guaranteed by the caller to never be null . |
Implements QPatternist::ItemType.
Reimplemented in QPatternist::XSLTNodeTest, QPatternist::BuiltinNodeType< kind >, and QPatternist::AbstractNodeTest.
Definition at line 51 of file qanynodetype.cpp.
|
friend |
Definition at line 100 of file qanynodetype_p.h.