SaxonC 12.5
Saxon Processor library for C/C++, PHP and Python
|
#include <XdmValue.h>
Public Member Functions | |
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 () |
virtual XdmItem * | getHead () |
Get the first item in the sequence. | |
virtual XdmItem * | itemAt (int n) |
Get the n'th item in the value, counting from zero. | |
virtual int | size () |
virtual const char * | toString () |
Create a string representation of the value. | |
int | getRefCount () |
Get the number of references on this XdmValue. | |
virtual void | incrementRefCount () |
virtual void | decrementRefCount () |
virtual int64_t | getUnderlyingValue () |
virtual XDM_TYPE | getType () |
void | resetRelinquishedItems () |
void | incrementRefCountForRelinquishedValue (int i) |
Protected Member Functions | |
void | initialize () |
initialize this XdmValue with default values | |
Protected Attributes | |
char * | valueType |
XdmItem ** | values |
char * | relinquished_values |
int | values_cap |
int | xdmSize |
int | refCount |
An XdmValue
represents a value in the XDM data model. A value is a sequence of zero or more items, each item being an atomic value, a node, or a function item. This class is a wrapper of the XdmValue object created in Java.
|
inline |
A default Constructor.
Create a empty value
XdmValue::XdmValue | ( | int64_t | val, |
bool | arrFlag ) |
XdmValue::XdmValue | ( | int64_t | val | ) |
|
virtual |
Destructor.
Destructor for this XdmValue
void XdmValue::addUnderlyingValue | ( | int64_t | val | ) |
Add an Java XdmValue object to the sequence. See methods the functions in SaxonCXPath of the C library
val | - Java object |
void XdmValue::addXdmItem | ( | XdmItem * | val | ) |
void XdmValue::addXdmItemFromUnderlyingValue | ( | XdmItem * | val | ) |
XdmValue * XdmValue::addXdmValueWithType | ( | const char * | tStr, |
const char * | val ) |
Add an XdmItem to the sequence.
This method is designed for the primitive types.
tStr | - specify target type of the value |
val | - Value to convert |
|
virtual |
|
virtual |
Get the first item in the sequence.
Reimplemented in XdmAtomicValue, XdmItem, and XdmNode.
|
inline |
Get the number of references on this XdmValue.
This method is used for internal memory management.
|
virtual |
Get the type of the object
Reimplemented in XdmArray, XdmAtomicValue, XdmFunctionItem, XdmItem, XdmMap, and XdmNode.
|
virtual |
|
virtual |
void XdmValue::incrementRefCountForRelinquishedValue | ( | int | i | ) |
Internal method used to increment the ref count for an relinquished item only once
|
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 in XdmItem.
void XdmValue::releaseXdmValue | ( | ) |
This is deprecated and a no-op, C++ destructor handles this case. Delete the XdmValue object and clean up all items in the sequence. Release the underlying JNI object.
void XdmValue::resetRelinquishedItems | ( | ) |
Internal method used to reset associated reference counts on xdmItems that have been relinquished
|
virtual |
Get the number of items in the sequence
Reimplemented in XdmItem.
|
virtual |
|
protected |
The reference count of this XdmValue. If >1 this object should not be deleted
|
protected |
Pointer to the array of items which have been relinquished
|
protected |
The count of items in the value
|
protected |
Cached. The type of the XdmValue
|
protected |
Cached. The count of items in the XdmValue