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

Public Member Functions

 XdmItem (jobject)
 XdmItem (const XdmItem &item)
virtual void incrementRefCount ()
virtual void decrementRefCount ()
virtual bool isAtomic ()
virtual jobject getUnderlyingValue ()
sxnc_valuegetUnderlyingCValue ()
virtual const char * getStringValue ()
XdmItemgetHead ()
XdmItemitemAt (int n)
int size ()
virtual XDM_TYPE getType ()
- 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 ()
virtual const char * toString ()
int getRefCount ()
void setProcessor (SaxonProcessor *p)
const char * checkFailures ()

Protected Attributes

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

Member Function Documentation

◆ getHead()

XdmItem * XdmItem::getHead ( )

Get the first item in the sequence

XdmItem or null if sequence is empty

Reimplemented from XdmValue.

◆ getStringValue()

const char * XdmItem::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 in XdmNode, and XdmAtomicValue.

◆ getType()

XDM_TYPE XdmItem::getType ( )

Get the type of the object

Reimplemented from XdmValue.

Reimplemented in XdmNode, and XdmAtomicValue.

◆ getUnderlyingValue()

jobject XdmItem::getUnderlyingValue ( )

Get Java XdmValue object.

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

Reimplemented from XdmValue.

Reimplemented in XdmNode.

◆ itemAt()

XdmItem * XdmItem::itemAt ( int  n)

Get the n'th item in the value, counting from zero.

nthe item that is required, counting the first item in the sequence as item zero
the n'th item in the sequence making up the value, counting from zero return NULL if n is less than zero or greater than or equal to the number of items in the value return NULL if the value is lazily evaluated and the delayed evaluation fails with a dynamic error.

Reimplemented from XdmValue.

◆ size()

int XdmItem::size ( )

Get the number of items in the sequence

Reimplemented from XdmValue.

Member Data Documentation

◆ stringValue

std::string XdmItem::stringValue

Cached. String representation of the XdmValue, if available

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