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,
256 EnumXdmAxis convertEnumXdmAxis(
int n) {
return static_cast<EnumXdmAxis
>(n); }
310 const char *nodeName;
311 const char *localName;
312 const char *nodeToString;
323 XDM_NODE_KIND nodeKind;
virtual int64_t getUnderlyingValue()
Definition XdmItem.cpp:52
XDM_TYPE getType()
Get the type of the object.
Definition XdmNode.h:306
const char * getStringValue()
Definition XdmNode.cpp:157
int axisNodeCount()
Definition XdmNode.cpp:241
XdmNode * getParent()
Get the parent of this node.
Definition XdmNode.cpp:182
const char * getNodeName()
Definition XdmNode.cpp:114
int64_t getUnderlyingValue()
Get the underlying JNI Java object for the XdmNode.
Definition XdmNode.h:267
const char * toString()
Definition XdmNode.cpp:159
XdmValue * getTypedValue()
Get the typed value of this node, as defined in XDM.
Definition XdmNode.cpp:139
XdmNode * getChild(int i, bool cache=true)
Get the ith child nodes from the current parent node.
Definition XdmNode.cpp:316
int getAttributeCount()
Get the number of attribute node for this current node.
Definition XdmNode.cpp:273
const char * getBaseUri()
Get the base URI of this node.
Definition XdmNode.cpp:172
const char * getLocalName()
Definition XdmNode.cpp:89
XdmItem * getHead()
Get the first item in the sequence.
Definition XdmNode.cpp:155
bool isNode()
Determine whether the item is a node or some other type of item.
Definition XdmNode.h:276
virtual bool isAtomic()
Determine whether the item is an atomic value or some other type of item.
Definition XdmNode.cpp:35
int getChildCount()
Get the count of child nodes from the current node.
Definition XdmNode.cpp:282
XdmNode ** axisNodes(EnumXdmAxis axis)
Get the array of nodes reachable from this node via a given axis.
Definition XdmNode.cpp:243
XDM_NODE_KIND getNodeKind()
Get the kind of node.
Definition XdmNode.cpp:37
XdmNode ** getAttributeNodes(bool cache=false)
Get array of attribute nodes of this element.
Definition XdmNode.cpp:211
XdmNode ** getChildren(bool cache=true)
Get all the child nodes from the current parent node.
Definition XdmNode.cpp:290
virtual ~XdmNode()
Destructor.
Definition XdmNode.cpp:46
const char * getAttributeValue(const char *name)
Definition XdmNode.cpp:198