Saxon/C  1.1.2
Saxon Processor library for C/C++/PHP
 All Classes Functions Variables
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)
 
void releaseXdmValue ()
 
virtual XdmItemgetHead ()
 
virtual XdmItemitemAt (int n)
 
virtual int size ()
 
int getRefCount ()
 
void incrementRefCount ()
 
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::XdmValue ( )
inline

A default Constructor. Create a empty value

XdmValue::XdmValue ( const XdmValue other)

A copy constructor.

Parameters
val- Xdmvalue
XdmValue::XdmValue ( jobject  val)

A Constructor. Wrap an Java XdmValue object.

Parameters
val- Java XdmValue object

Member Function Documentation

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
void XdmValue::addXdmItem ( XdmItem val)

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

Parameters
val- XdmItem object
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
XdmItem * XdmValue::getHead ( )
virtual

Get the first item in the sequence

Returns
XdmItem or null if sequence is empty

Reimplemented in XdmItem.

XDM_TYPE XdmValue::getType ( )
virtual

Get the type of the object

Reimplemented in XdmNode, XdmItem, and XdmAtomicValue.

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.

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 return NULL if the value is lazily evaluated and the delayed evaluation fails with a dynamic error.

Reimplemented in XdmItem.

int XdmValue::size ( )
virtual

Get the number of items in the sequence

Reimplemented in XdmItem.

Member Data Documentation

char* XdmValue::valueType
protected

Cached. The type of the XdmValue

int XdmValue::xdmSize
protected

Cached. The count of items in the XdmValue


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