SourceForge.net Logo
Public Types | Public Member Functions | Static Public Attributes | List of all members
Node Class Referenceabstract

#include <Node.hpp>

Inheritance diagram for Node:
Inheritance graph
[legend]

Public Types

typedef RefCountPointer< const
Node
Ptr
 
- Public Types inherited from Item
typedef RefCountPointer< const
Item
Ptr
 

Public Member Functions

virtual bool isNode () const
 Returns true, since this Item is a Node. More...
 
virtual bool isAtomicValue () const
 Returns false, since this Item is a Node. More...
 
virtual bool isFunction () const
 
virtual void typeToBuffer (DynamicContext *context, xercesc::XMLBuffer &buffer) const
 Debug method to output the type of the item in SequenceType notation. More...
 
virtual const XMLCh * asString (const DynamicContext *context) const =0
 Serialize this node. More...
 
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 More...
 
virtual Sequence dmBaseURI (const DynamicContext *context) const =0
 Accessor: returns the base-uri of this node as a xs:anyURI, if one exists. More...
 
virtual const XMLCh * dmNodeKind () const =0
 Accessor: returns the kind of node as a string. More...
 
virtual ATQNameOrDerived::Ptr dmNodeName (const DynamicContext *context) const =0
 Accessor: returns the name of this node. More...
 
virtual const XMLCh * dmStringValue (const DynamicContext *context) const =0
 Accessor: returns the string value of this node. More...
 
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 derived from the string-value of the node and its type in such a way as to be consistent with validation. More...
 
virtual Sequence dmDocumentURI (const DynamicContext *context) const =0
 Accessor: returns the absolute URI of the resource from which the document node was constructed, if the absolute URI is available. More...
 
virtual ATQNameOrDerived::Ptr dmTypeName (const DynamicContext *context) const =0
 Accessor: returns the name of the type of a node. More...
 
virtual ATBooleanOrDerived::Ptr dmNilled (const DynamicContext *context) const =0
 Accessor: returns the setting of the nilled property of an element node. More...
 
virtual bool lessThan (const Node::Ptr &other, const DynamicContext *context) const =0
 Returns true if 'this' is before 'other' in document order, false otherwise. More...
 
virtual bool equals (const Node::Ptr &other) const =0
 Returns true if 'other' is equal (identity equal) to 'this'. More...
 
virtual bool uniqueLessThan (const Node::Ptr &other, const DynamicContext *context) const =0
 Specifies a sorting order for uniqueness removal. More...
 
virtual Node::Ptr root (const DynamicContext *context) const =0
 Returns the root of this node. More...
 
virtual Node::Ptr dmParent (const DynamicContext *context) const =0
 Returns the parent of this node. More...
 
virtual Result dmAttributes (const DynamicContext *context, const LocationInfo *info) const =0
 Returns the attributes of this node. More...
 
virtual Result dmNamespaceNodes (const DynamicContext *context, const LocationInfo *info) const =0
 Returns the namespace nodes of this node. More...
 
virtual Result dmChildren (const DynamicContext *context, const LocationInfo *info) const =0
 Returns the children of this node. More...
 
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. More...
 
virtual ATBooleanOrDerived::Ptr dmIsId (const DynamicContext *context) const =0
 Returns if the node is an id node or not. More...
 
virtual ATBooleanOrDerived::Ptr dmIsIdRefs (const DynamicContext *context) const =0
 Returns if the node is an idref node or not. More...
 
virtual const XMLCh * getTypeURI () const =0
 
virtual const XMLCh * getTypeName () const =0
 
- Public Member Functions inherited from Item
virtual void generateEvents (EventHandler *events, const DynamicContext *context, bool preserveNS=true, bool preserveType=true) const =0
 Generate events for this Item to the given EventHandler. More...
 
virtual void * getInterface (const XMLCh *name) const =0
 Method for returning arbitrary interfaces from the implementations. More...
 
- Public Member Functions inherited from ReferenceCounted
 ReferenceCounted ()
 
virtual ~ReferenceCounted ()
 
void incrementRefCount () const
 Increment the reference count. More...
 
virtual void decrementRefCount () const
 Decrement the reference count, deleting if it becomes zero. More...
 
unsigned int getRefCount () const
 

Static Public Attributes

static const XMLCh document_string []
 
static const XMLCh element_string []
 
static const XMLCh attribute_string []
 
static const XMLCh text_string []
 
static const XMLCh processing_instruction_string []
 
static const XMLCh comment_string []
 
static const XMLCh namespace_string []
 
- Static Public Attributes inherited from Item
static const XMLCh gXQilla []
 The "XQilla" item interface. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Item
 Item ()
 
- Protected Attributes inherited from ReferenceCounted
unsigned int _ref_count
 

Member Typedef Documentation

typedef RefCountPointer<const Node> Node::Ptr

Member Function Documentation

virtual const XMLCh* Node::asString ( const DynamicContext context) const
pure virtual

Serialize this node.

Implements Item.

virtual Result Node::dmAttributes ( const DynamicContext context,
const LocationInfo info 
) const
pure virtual

Returns the attributes of this node.

virtual Sequence Node::dmBaseURI ( const DynamicContext context) const
pure virtual

Accessor: returns the base-uri of this node as a xs:anyURI, if one exists.

virtual Result Node::dmChildren ( const DynamicContext context,
const LocationInfo info 
) const
pure virtual

Returns the children of this node.

virtual Sequence Node::dmDocumentURI ( const DynamicContext context) const
pure virtual

Accessor: returns the absolute URI of the resource from which the document node was constructed, if the absolute URI is available.

virtual ATBooleanOrDerived::Ptr Node::dmIsId ( const DynamicContext context) const
pure virtual

Returns if the node is an id node or not.

virtual ATBooleanOrDerived::Ptr Node::dmIsIdRefs ( const DynamicContext context) const
pure virtual

Returns if the node is an idref node or not.

virtual Result Node::dmNamespaceNodes ( const DynamicContext context,
const LocationInfo info 
) const
pure virtual

Returns the namespace nodes of this node.

virtual ATBooleanOrDerived::Ptr Node::dmNilled ( const DynamicContext context) const
pure virtual

Accessor: returns the setting of the nilled property of an element node.

virtual const XMLCh* Node::dmNodeKind ( ) const
pure virtual

Accessor: returns the kind of node as a string.

virtual ATQNameOrDerived::Ptr Node::dmNodeName ( const DynamicContext context) const
pure virtual

Accessor: returns the name of this node.

virtual Node::Ptr Node::dmParent ( const DynamicContext context) const
pure virtual

Returns the parent of this node.

virtual const XMLCh* Node::dmStringValue ( const DynamicContext context) const
pure virtual

Accessor: returns the string value of this node.

virtual Sequence Node::dmTypedValue ( DynamicContext context) const
pure virtual

Accessor: returns the typed value of this node, which is a sequence of zero or more atomic values derived from the string-value of the node and its type in such a way as to be consistent with validation.

virtual ATQNameOrDerived::Ptr Node::dmTypeName ( const DynamicContext context) const
pure virtual

Accessor: returns the name of the type of a node.

virtual bool Node::equals ( const Node::Ptr other) const
pure virtual

Returns true if 'other' is equal (identity equal) to 'this'.

virtual Result Node::getAxisResult ( XQStep::Axis  axis,
const NodeTest *  nodeTest,
const DynamicContext context,
const LocationInfo info 
) const
pure virtual

Returns a Result containing the nodes in the axis given, relative to this node.

Forward axis results should be in document order. Reverse axis results should be in reverse document order.

virtual const XMLCh* Node::getTypeName ( ) const
pure virtual

Implements Item.

virtual const XMLCh* Node::getTypeURI ( ) const
pure virtual

Implements Item.

virtual bool Node::hasInstanceOfType ( const XMLCh *  typeURI,
const XMLCh *  typeName,
const DynamicContext context 
) const
pure virtual

check if the underlying type of this node is instance of a certain type

virtual bool Node::isAtomicValue ( ) const
virtual

Returns false, since this Item is a Node.

Implements Item.

virtual bool Node::isFunction ( ) const
virtual

Implements Item.

virtual bool Node::isNode ( ) const
virtual

Returns true, since this Item is a Node.

Implements Item.

virtual bool Node::lessThan ( const Node::Ptr other,
const DynamicContext context 
) const
pure virtual

Returns true if 'this' is before 'other' in document order, false otherwise.

virtual Node::Ptr Node::root ( const DynamicContext context) const
pure virtual

Returns the root of this node.

virtual void Node::typeToBuffer ( DynamicContext context,
xercesc::XMLBuffer &  buffer 
) const
virtual

Debug method to output the type of the item in SequenceType notation.

Implements Item.

virtual bool Node::uniqueLessThan ( const Node::Ptr other,
const DynamicContext context 
) const
pure virtual

Specifies a sorting order for uniqueness removal.

This may or may not return the same as lessThan.

Member Data Documentation

const XMLCh Node::attribute_string[]
static
const XMLCh Node::comment_string[]
static
const XMLCh Node::document_string[]
static
const XMLCh Node::element_string[]
static
const XMLCh Node::namespace_string[]
static
const XMLCh Node::processing_instruction_string[]
static
const XMLCh Node::text_string[]
static

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