Qt 4.8
|
Instances of this class represents types that are sub-classes of node()
, such as processing-instruction()
.
More...
#include <qbuiltinnodetype_p.h>
Public Functions | |
virtual ItemType::Ptr | atomizedType () const |
virtual QString | displayName (const NamePool::Ptr &np) const |
virtual bool | itemMatches (const Item &item) const |
QXmlNodeModelIndex::NodeKind | nodeKind () const |
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::AnyNodeType | |
virtual bool | isAtomicType () const |
virtual bool | isNodeType () 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 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 | |
BuiltinNodeType () | |
Protected Functions inherited from QPatternist::AnyNodeType | |
AnyNodeType () | |
Friends | |
class | BuiltinTypes |
Additional Inherited Members | |
Public Types inherited from QPatternist::AnyNodeType | |
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 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... | |
Instances of this class represents types that are sub-classes of node()
, such as processing-instruction()
.
Definition at line 74 of file qbuiltinnodetype_p.h.
|
protected |
This constructor does nothing, but exists in order to make it impossible to instantiate this class from anywhere but from BuiltinTypes.
Definition at line 49 of file qbuiltinnodetype.cpp.
|
virtual |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 74 of file qbuiltinnodetype.cpp.
|
virtual |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 98 of file qbuiltinnodetype.cpp.
|
virtual |
item | the item that is to be matched. This is guaranteed by the caller to never be null . |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 65 of file qbuiltinnodetype.cpp.
|
virtual |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 130 of file qbuiltinnodetype.cpp.
|
virtual |
|
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.
Reimplemented from QPatternist::AnyNodeType.
Definition at line 124 of file qbuiltinnodetype.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 . |
Reimplemented from QPatternist::AnyNodeType.
Definition at line 54 of file qbuiltinnodetype.cpp.
|
friend |
Definition at line 93 of file qbuiltinnodetype_p.h.