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
sxnc_valuevalue
 
std::string stringValue
 
- Protected Attributes inherited from XdmValue
SaxonProcessorproc
 
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

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

◆ getStringValue()

const char * XdmNode::getStringValue ( )
virtual

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.

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

Reimplemented from XdmItem.

◆ getType()

XDM_TYPE XdmNode::getType ( )
inlinevirtual

Get the type of the object

Reimplemented from XdmItem.

◆ getTypedValue()

XdmValue * XdmNode::getTypedValue ( )

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

Returns
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 ( )
inlinevirtual

Get Java XdmValue object.

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

Reimplemented from XdmItem.

◆ toString()

const char * XdmNode::toString ( )
virtual

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

Returns
a string representation of the value

Reimplemented from XdmValue.


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