|  | SaxonC
    11.7
    Saxon Processor library for C/C++, PHP and Python | 
#include <XdmValue.h>
 
  
| Public Member Functions | |
| XdmValue () | |
| A default Constructor.  More... | |
| XdmValue (const XdmValue &other) | |
| A copy constructor.  More... | |
| XdmValue * | addXdmValueWithType (const char *tStr, const char *val) | 
| Add an XdmItem to the sequence.  More... | |
| void | addXdmItem (XdmItem *val) | 
| void | addUnderlyingValue (jobject val) | 
| XdmValue (jobject val, bool arrFlag) | |
| A Constructor for handling XdmArray - Internal user only.  More... | |
| XdmValue (jobject val) | |
| A Constructor.  More... | |
| virtual | ~XdmValue () | 
| Destructor.  More... | |
| void | releaseXdmValue () | 
| Delete the XdmValue object and clean up all items in the sequence. Release the underlying JNI object. | |
| virtual XdmItem * | getHead () | 
| Get the first item in the sequence.  More... | |
| virtual XdmItem * | itemAt (int n) | 
| Get the n'th item in the value, counting from zero.  More... | |
| virtual int | size () | 
| virtual const char * | toString () | 
| Create a string representation of the value.  More... | |
| int | getRefCount () | 
| Get the number of references on this XdmValue.  More... | |
| virtual void | incrementRefCount () | 
| Increment reference count of this XdmValue - Memory management - Internal use only.  More... | |
| virtual void | decrementRefCount () | 
| Decrement reference count of this XdmValue - Memory management - Internal use only.  More... | |
| virtual jobject | getUnderlyingValue () | 
| virtual XDM_TYPE | getType () | 
| Protected Member Functions | |
| void | initialize () | 
| initialize this XdmValue with default values | |
| Protected Attributes | |
| char * | valueType | 
| std::vector< XdmItem * > | values | 
| int | xdmSize | 
| int | refCount | 
XdmValue. Value in the XDM data model. A value is a sequence of zero or more items, each item being either an atomic value or a node. This class is a wrapper of the the XdmValue object created in Java. 
| 
 | inline | 
A default Constructor.
Create a empty value
| XdmValue::XdmValue | ( | const XdmValue & | other | ) | 
A copy constructor.
| other | - Xdmvalue | 
| XdmValue::XdmValue | ( | jobject | val, | 
| bool | arrFlag | ||
| ) | 
| XdmValue::XdmValue | ( | jobject | val | ) | 
| 
 | virtual | 
Destructor.
Destructor for this XdmValue
| void XdmValue::addUnderlyingValue | ( | jobject | 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 | ) | 
| 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 XdmNode, XdmItem, and XdmAtomicValue.
| 
 | 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 XdmNode, XdmMap, XdmItem, XdmFunctionItem, XdmAtomicValue, and XdmArray.
| 
 | virtual | 
| 
 | virtual | 
| 
 | 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.
| 
 | 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 | 
Cached. The type of the XdmValue
| 
 | protected | 
Cached. The count of items in the XdmValue