10#ifndef SAXON_XDMNODE_h
11#define SAXON_XDMNODE_h
16typedef enum eXdmNodeKind {
22 PROCESSING_INSTRUCTION = 7,
27enum class EnumXdmAxis {
33 DESCENDANT_OR_SELF = 5,
35 FOLLOWING_SIBLING = 7,
39 PRECEDING_SIBLING = 11,
357 if (fetchedChildren !=
nullptr) {
358 delete[] fetchedChildren;
359 fetchedChildren =
nullptr;
366 const char *nodeName;
367 const char *localName;
368 const char *nodeToString;
379 XDM_NODE_KIND nodeKind;
virtual int64_t getUnderlyingValue()
Definition XdmItem.cpp:52
XDM_TYPE getType()
Get the type of the object.
Definition XdmNode.h:332
const char * getStringValue()
Definition XdmNode.cpp:205
int axisNodeCount()
Definition XdmNode.cpp:289
XdmNode * getParent()
Get the parent of this node.
Definition XdmNode.cpp:230
const char * getNodeName()
Definition XdmNode.cpp:154
int64_t getUnderlyingValue()
Get the underlying JNI Java object for the XdmNode.
Definition XdmNode.h:294
const char * toString()
Definition XdmNode.cpp:207
XdmValue * getTypedValue()
Get the typed value of this node, as defined in XDM.
Definition XdmNode.cpp:179
void incrementRefCountForRelinquishedChildren()
Definition XdmNode.cpp:96
int getAttributeCount()
Get the number of attribute node for this current node.
Definition XdmNode.cpp:321
const char * getBaseUri()
Get the base URI of this node.
Definition XdmNode.cpp:220
XdmNode ** getChildren(bool cache=false)
Get all the child nodes from the current parent node.
Definition XdmNode.cpp:338
const char * getLocalName()
Definition XdmNode.cpp:129
XdmNode(int64_t)
Definition XdmNode.cpp:9
XdmItem * getHead()
Get the first item in the sequence.
Definition XdmNode.cpp:203
bool isNode()
Determine whether the item is a node or some other type of item.
Definition XdmNode.h:303
int getColumnNumber()
Get the column number of the node in a source document.
Definition XdmNode.cpp:199
virtual bool isAtomic()
Determine whether the item is an atomic value or some other type of item.
Definition XdmNode.cpp:38
int getChildCount()
Get the count of child nodes from the current node.
Definition XdmNode.cpp:330
XdmNode * getChild(int i, bool cache=false)
Get the ith child nodes from the current parent node.
Definition XdmNode.cpp:364
int getLineNumber()
Get the line number of the node in a source document.
Definition XdmNode.cpp:195
XdmNode ** axisNodes(EnumXdmAxis axis)
Get the array of nodes reachable from this node via a given axis.
Definition XdmNode.cpp:291
static void deleteChildrenArray(XdmNode **fetchedChildren)
Definition XdmNode.h:356
bool hasRelinquishedChildren()
Definition XdmNode.cpp:109
EnumXdmAxis convertEnumXdmAxis(int n)
Definition XdmNode.h:283
void resetRelinquishedChildren()
Definition XdmNode.cpp:113
XDM_NODE_KIND getNodeKind()
Get the kind of node.
Definition XdmNode.cpp:40
XdmNode ** getAttributeNodes(bool cache=false)
Get array of attribute nodes of this element.
Definition XdmNode.cpp:259
virtual ~XdmNode()
Destructor.
Definition XdmNode.cpp:49
const char * getAttributeValue(const char *name)
Definition XdmNode.cpp:246