SaxonC 12.5
Saxon Processor library for C/C++, PHP and Python
|
#include <XdmItem.h>
Public Member Functions | |
XdmItem () | |
XdmItem default constructor. | |
XdmItem (int64_t) | |
XdmItem (const XdmItem &item) | |
Copy constructor. | |
virtual | ~XdmItem () |
Destructor. | |
virtual void | incrementRefCount () |
virtual void | decrementRefCount () |
virtual bool | isAtomic () |
virtual bool | isNode () |
virtual bool | isFunction () |
virtual bool | isMap () |
virtual bool | isArray () |
virtual int64_t | getUnderlyingValue () |
virtual const char * | getStringValue () |
Get the string value of the item. | |
const char * | toString () |
virtual XdmItem * | getHead () |
XdmItem * | itemAt (int n) |
int | size () |
virtual XDM_TYPE | getType () |
Public Member Functions inherited from XdmValue | |
XdmValue () | |
A default Constructor. | |
XdmValue (const XdmValue &other) | |
A copy constructor. | |
XdmValue * | addXdmValueWithType (const char *tStr, const char *val) |
Add an XdmItem to the sequence. | |
void | addXdmItem (XdmItem *val) |
void | addXdmItemFromUnderlyingValue (XdmItem *val) |
void | addUnderlyingValue (int64_t val) |
XdmValue (int64_t val, bool arrFlag) | |
A Constructor for handling XdmArray - Internal user only. | |
XdmValue (int64_t val) | |
A Constructor. | |
virtual | ~XdmValue () |
Destructor. | |
void | releaseXdmValue () |
int | getRefCount () |
Get the number of references on this XdmValue. | |
void | resetRelinquishedItems () |
void | incrementRefCountForRelinquishedValue (int i) |
Protected Attributes | |
int64_t | value |
const char * | stringValue |
const char * | itemToString |
Protected Attributes inherited from XdmValue | |
char * | valueType |
XdmItem ** | values |
char * | relinquished_values |
int | values_cap |
int | xdmSize |
int | refCount |
Additional Inherited Members | |
Protected Member Functions inherited from XdmValue | |
void | initialize () |
initialize this XdmValue with default values | |
The class XdmItem represents an item in a sequence, as defined by the XDM data model. An item is either an atomic value, a node, or a function item.
An item is a member of a sequence, but it can also be considered as a sequence (of length one) in its own right. XdmItem
is a subtype of XdmValue
because every Item in the XDM data model is also a value.
It cannot be assumed that every sequence of length one will be represented by an XdmItem
. It is quite possible for an XdmValue
that is not an XdmItem
to hold a singleton sequence.
Saxon provides two concrete subclasses of XdmItem
, namely XdmNode and XdmAtomicValue. Users must not attempt to create additional subclasses.
|
explicit |
|
virtual |
Destructor.
Destructor for XdmItem
|
virtual |
|
virtual |
Get the first item in the sequence
Reimplemented from XdmValue.
Reimplemented in XdmAtomicValue, and XdmNode.
|
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. The caller should deallocate memory using delete
.
Reimplemented in XdmArray, XdmAtomicValue, XdmFunctionItem, and XdmNode.
|
virtual |
Get the type of the object
Reimplemented from XdmValue.
Reimplemented in XdmArray, XdmAtomicValue, XdmFunctionItem, XdmMap, and XdmNode.
|
virtual |
|
virtual |
|
virtual |
Determine whether the item is an Array or some other type of item
Reimplemented in XdmArray.
|
virtual |
Determine whether the item is an atomic value or some other type of item
Reimplemented in XdmAtomicValue, XdmFunctionItem, and XdmNode.
|
virtual |
Determine whether the item is a function or some other type of item
Reimplemented in XdmArray, XdmFunctionItem, and XdmMap.
|
virtual |
Determine whether the item is a map or some other type of item
Reimplemented in XdmMap.
|
virtual |
Determine whether the item is a node or some other type of item
Reimplemented in XdmNode.
|
virtual |
Get the n'th item in the value, counting from zero.
n | the item that is required, counting the first item in the sequence as item zero |
Reimplemented from XdmValue.
|
virtual |
Get the number of items in the sequence
Reimplemented from XdmValue.
|
virtual |
The toString() method returns a simple XML serialization of the node with defaulted serialization parameters. The caller should deallocate memory using delete
Reimplemented from XdmValue.
|
protected |
Cached. String representation of the XdmValue, if available
|
protected |
Cached. String representation of the XdmValue, if available
|
protected |
The Java XdmItem reference in Graalvm