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

Public Member Functions

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

Protected Attributes

SaxonProcessorproc
 
char * valueType
 
std::vector< XdmItem * > values
 
int xdmSize
 
int refCount
 

Constructor & Destructor Documentation

◆ XdmValue() [1/4]

XdmValue::XdmValue ( )
inline

A default Constructor. Create a empty value

◆ XdmValue() [2/4]

XdmValue::XdmValue ( const XdmValue other)

A copy constructor.

Parameters
val- Xdmvalue

◆ XdmValue() [3/4]

XdmValue::XdmValue ( jobject  val,
bool  arrFlag 
)

A Constructor. Handles a sequence of XdmValues given as a wrapped an Java XdmValue object.

Parameters
val- Java XdmValue object
arrFlag- Currently not used but allows for overloading of constructor methods

◆ XdmValue() [4/4]

XdmValue::XdmValue ( jobject  val)

A Constructor. Wrap an Java XdmValue object.

Parameters
val- Java XdmValue object

Member Function Documentation

◆ addUnderlyingValue()

void XdmValue::addUnderlyingValue ( jobject  val)

Add an Java XdmValue object to the sequence. See methods the functions in SaxonCXPath of the C library

Parameters
val- Java object

◆ addXdmItem()

void XdmValue::addXdmItem ( XdmItem val)

Add an XdmItem to the sequence. See functions in SaxonCXPath of the C library

Parameters
val- XdmItem object

◆ addXdmValueWithType()

XdmValue* XdmValue::addXdmValueWithType ( const char *  tStr,
const char *  val 
)

Constructor. Create a value from a collection of items

Parameters
val- Xdmvalue Constructor. Create a value from a collection of items
val- Xdmvalue Add an XdmItem to the sequence. This method is designed for the primitive types.
type- specify target type of the value
val- Value to convert

◆ getHead()

XdmItem * XdmValue::getHead ( )
virtual

Get the first item in the sequence

Returns
XdmItem or null if sequence is empty

Reimplemented in XdmItem.

◆ getType()

XDM_TYPE XdmValue::getType ( )
virtual

Get the type of the object

Reimplemented in XdmNode, XdmItem, and XdmAtomicValue.

◆ getUnderlyingValue()

jobject XdmValue::getUnderlyingValue ( )
virtual

Get Java XdmValue object.

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

Reimplemented in XdmNode, and XdmItem.

◆ itemAt()

XdmItem * XdmValue::itemAt ( int  n)
virtual

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

Parameters
nthe item that is required, counting the first item in the sequence as item zero
Returns
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

Reimplemented in XdmItem.

◆ size()

int XdmValue::size ( )
virtual

Get the number of items in the sequence

Reimplemented in XdmItem.

◆ toString()

const char * XdmValue::toString ( )
virtual

Create a string representation of the value. The is the result of serializing the value using the adaptive serialization method.

Returns
a string representation of the value

Reimplemented in XdmNode.

Member Data Documentation

◆ valueType

char* XdmValue::valueType
protected

Cached. The type of the XdmValue

◆ xdmSize

int XdmValue::xdmSize
protected

Cached. The count of items in the XdmValue


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