Go to the documentation of this file.
20 #ifndef _XQILLANODE_HPP
21 #define _XQILLANODE_HPP
25 #include <xqilla/ast/XQStep.hpp>
127 static const XMLCh document_string[];
128 static const XMLCh element_string[];
129 static const XMLCh attribute_string[];
130 static const XMLCh text_string[];
131 static const XMLCh processing_instruction_string[];
132 static const XMLCh comment_string[];
133 static const XMLCh namespace_string[];
virtual bool uniqueLessThan(const Node::Ptr &other, const DynamicContext *context) const =0
Specifies a sorting order for uniqueness removal.
virtual bool hasInstanceOfType(const XMLCh *typeURI, const XMLCh *typeName, const DynamicContext *context) const =0
check if the underlying type of this node is instance of a certain type
Super class of all the reference counted wrappers for Items.
Definition: ReferenceCounted.hpp:62
virtual Sequence dmTypedValue(DynamicContext *context) const =0
Accessor: returns the typed value of this node, which is a sequence of zero or more atomic values der...
virtual Result dmChildren(const DynamicContext *context, const LocationInfo *info) const =0
Returns the children of this node.
The execution time dynamic context interface.
Definition: DynamicContext.hpp:39
virtual const XMLCh * getTypeURI() const =0
virtual ATQNameOrDerived::Ptr dmTypeName(const DynamicContext *context) const =0
Accessor: returns the name of the type of a node.
virtual ATBooleanOrDerived::Ptr dmIsId(const DynamicContext *context) const =0
Returns if the node is an id node or not.
virtual bool isFunction() const
virtual Node::Ptr dmParent(const DynamicContext *context) const =0
Returns the parent of this node.
virtual Node::Ptr root(const DynamicContext *context) const =0
Returns the root of this node.
virtual bool equals(const Node::Ptr &other) const =0
Returns true if 'other' is equal (identity equal) to 'this'.
virtual bool isAtomicValue() const
Returns false, since this Item is a Node.
RefCountPointer< const Node > Ptr
Definition: Node.hpp:36
virtual const XMLCh * asString(const DynamicContext *context) const =0
Serialize this node.
An eagerly evaluated result of a query execution.
Definition: Sequence.hpp:40
virtual bool isNode() const
Returns true, since this Item is a Node.
virtual Result getAxisResult(XQStep::Axis axis, const NodeTest *nodeTest, const DynamicContext *context, const LocationInfo *info) const =0
Returns a Result containing the nodes in the axis given, relative to this node.
virtual Sequence dmBaseURI(const DynamicContext *context) const =0
Accessor: returns the base-uri of this node as a xs:anyURI, if one exists.
A scoped pointer wrapper for the lazily evaluated query result.
Definition: Result.hpp:38
virtual Result dmNamespaceNodes(const DynamicContext *context, const LocationInfo *info) const =0
Returns the namespace nodes of this node.
A class that gives records a location in the query.
Definition: LocationInfo.hpp:30
Definition: XPath2MemoryManager.hpp:46
virtual const XMLCh * dmNodeKind() const =0
Accessor: returns the kind of node as a string.
virtual const XMLCh * dmStringValue(const DynamicContext *context) const =0
Accessor: returns the string value of this node.
virtual Sequence dmDocumentURI(const DynamicContext *context) const =0
Accessor: returns the absolute URI of the resource from which the document node was constructed,...
virtual ATBooleanOrDerived::Ptr dmNilled(const DynamicContext *context) const =0
Accessor: returns the setting of the nilled property of an element node.
virtual void typeToBuffer(DynamicContext *context, xercesc::XMLBuffer &buffer) const
Debug method to output the type of the item in SequenceType notation.
virtual Result dmAttributes(const DynamicContext *context, const LocationInfo *info) const =0
Returns the attributes of this node.
virtual ATBooleanOrDerived::Ptr dmIsIdRefs(const DynamicContext *context) const =0
Returns if the node is an idref node or not.
virtual bool lessThan(const Node::Ptr &other, const DynamicContext *context) const =0
Returns true if 'this' is before 'other' in document order, false otherwise.
virtual ATQNameOrDerived::Ptr dmNodeName(const DynamicContext *context) const =0
Accessor: returns the name of this node.
virtual const XMLCh * getTypeName() const =0