Saxon/C  1.2.1
Saxon Processor library for C/C++, PHP and Python
Public Member Functions | List of all members
XdmNode Class Reference
Inheritance diagram for XdmNode:
XdmItem XdmValue

Public Member Functions

 XdmNode (jobject)
 XdmNode (XdmNode *parent, jobject, XDM_NODE_KIND)
virtual bool isAtomic ()
XDM_NODE_KIND getNodeKind ()
const char * getNodeName ()
XdmValuegetTypedValue ()
const char * getBaseUri ()
const char * getStringValue ()
const char * toString ()
XdmNodegetParent ()
const char * getAttributeValue (const char *str)
int getAttributeCount ()
XdmNode ** getAttributeNodes ()
jobject getUnderlyingValue ()
XdmNode ** getChildren ()
int getChildCount ()
XDM_TYPE getType ()
- Public Member Functions inherited from XdmItem
 XdmItem (jobject)
 XdmItem (const XdmItem &item)
virtual void incrementRefCount ()
virtual void decrementRefCount ()
sxnc_valuegetUnderlyingCValue ()
XdmItemgetHead ()
XdmItemitemAt (int n)
int size ()
- Public Member Functions inherited from XdmValue
 XdmValue ()
 XdmValue (SaxonProcessor *p)
 XdmValue (const XdmValue &other)
XdmValueaddXdmValueWithType (const char *tStr, const char *val)
void addXdmItem (XdmItem *val)
void addUnderlyingValue (jobject val)
 XdmValue (jobject val, bool arrFlag)
 XdmValue (jobject val)
void releaseXdmValue ()
int getRefCount ()
void setProcessor (SaxonProcessor *p)
const char * checkFailures ()

Additional Inherited Members

- Protected Attributes inherited from XdmItem
std::string stringValue
- Protected Attributes inherited from XdmValue
char * valueType
std::vector< XdmItem * > values
int xdmSize
int refCount

Member Function Documentation

◆ getNodeName()

const char * XdmNode::getNodeName ( )

Get the name of the node, as a string in the form of a EQName

the name of the node. In the case of unnamed nodes (for example, text and comment nodes) return null.

◆ getStringValue()

const char * XdmNode::getStringValue ( )

Get the string value of the item. For a node, this gets the string value of the node. For an atomic value, it has the same effect as casting the value to a string. In all cases the result is the same as applying the XPath string() function.

For atomic values, the result is the same as the result of calling toString. This is not the case for nodes, where toString returns an XML serialization of the node.

the result of converting the item to a string.
the SaxonProcessor argument. It has been removed from release version 1.2.1

Reimplemented from XdmItem.

◆ getType()

XDM_TYPE XdmNode::getType ( )

Get the type of the object

Reimplemented from XdmItem.

◆ getTypedValue()

XdmValue * XdmNode::getTypedValue ( )

Get the typed value of this node, as defined in XDM

the typed value. If the typed value is a single atomic value, this will be returned as an instance of XdmAtomicValue

◆ getUnderlyingValue()

jobject XdmNode::getUnderlyingValue ( )

Get Java XdmValue object.

jobject - The Java object of the XdmValue in its JNI representation

Reimplemented from XdmItem.

◆ toString()

const char * XdmNode::toString ( )

Create a string representation of the value. The is the result of serializing the value using the adaptive serialization method.

a string representation of the value

Reimplemented from XdmValue.

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