![]() |
SaxonC 12.9.0
Saxon Processor library for C/C++, PHP and Python
|
An XdmValue represents a value in the XDM data model.
More...
#include <XdmValue.h>
Public Member Functions | |
| XdmValue () | |
| Default constructor. | |
| XdmValue (const XdmValue &other) | |
| XdmValue copy constructor. | |
| void | addXdmItem (XdmItem *val) |
| Add an XdmItem to the sequence. | |
| virtual bool | operator== (const XdmValue &other) const |
| void | addXdmItemFromUnderlyingValue (XdmItem *val) |
| Add an XdmItem to the sequence, when the sequence was returned from SaxonC - internal use only. | |
| void | addUnderlyingValue (int64_t val) |
| Add Java XdmValue object to the sequence. | |
| XdmValue (int64_t val, bool arrFlag) | |
| A Constructor for handling XdmArray - internal use only. | |
| XdmValue (int64_t val) | |
| XdmValue constructor to create an object which is a wrapper for a Java XdmValue object - internal use only. | |
| virtual | ~XdmValue () |
| Destructor method for XdmValue. | |
| void | releaseXdmValue () |
| Deprecated: this is deprecated and a no-op, the C++ destructor handles this case. | |
| virtual XdmItem * | getHead () |
| Get the first item in the sequence represented by this XdmValue. | |
| virtual XdmItem * | itemAt (int n) |
| Get the n'th item in the sequence, counting from zero. | |
| virtual int | size () |
| Get the number of items in the sequence. | |
| virtual const char * | toString (const char *encoding=nullptr) |
| Create a string representation of the sequence. | |
| int | getRefCount () |
| Get the number of references on this XdmValue - internal use only This method is used for internal memory management. | |
| virtual void | incrementRefCount () |
| Increment reference count of this XdmValue - internal use only This method is used for internal memory management. | |
| virtual void | decrementRefCount () |
| Decrement reference count of this XdmValue - internal use only This method is used for internal memory management. | |
| virtual int64_t | getUnderlyingValue () |
| Get the underlying Java XdmValue object - internal use only. | |
| virtual XDM_TYPE | getType () |
| Get the type of this XDM value. | |
| void | resetRelinquishedItems () |
| Reset associated reference counts on XdmItems that have been relinquished - internal use only. | |
| void | incrementRefCountForRelinquishedValue (int i) |
| Increment the ref count for a relinquished item only once - internal use only. | |
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 |
| int64_t | value |
| int64_t | emptyValue |
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 |
Default constructor.
Creates an empty XdmValue
| XdmValue::XdmValue | ( | int64_t | val, |
| bool | arrFlag ) |
| XdmValue::XdmValue | ( | int64_t | val | ) |
| void XdmValue::addUnderlyingValue | ( | int64_t | val | ) |
Add 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 | ) |
|
virtual |
|
virtual |
Get the first item in the sequence represented by this XdmValue.
Reimplemented in XdmAtomicValue, XdmItem, and XdmNode.
|
virtual |
Get the type of this XDM value.
Reimplemented in XdmArray, XdmAtomicValue, XdmFunctionItem, XdmItem, XdmMap, and XdmNode.
|
virtual |
|
virtual |
|
virtual |
Get the n'th item in the sequence, 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 | ( | ) |
Deprecated: this is deprecated and a no-op, the C++ destructor handles this case.
Delete the XdmValue object and clean up all items in the sequence. Release the underlying JNI object.
|
virtual |
|
virtual |
Create a string representation of the sequence.
This is the result of serializing the sequence using the adaptive serialization method.
| encoding | - the encoding of the string returned. If NULL or omitted defaults to the JVM encoding, which in most cases is UTF-8. |
operator delete. | SaxonApiException | if encoding cannot be recognized |
|
protected |
The Java XdmEmptySequence reference in Graalvm. This is -1 if value has been set
|
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 Java XdmItem reference in Graalvm
|
protected |
The number of items in the value
|
protected |
Cached. The type of the XdmValue
|
protected |
Cached. The number of items in the XdmValue