Saxon/C  1.1.0
Saxon Processor library for C/C++/PHP
 All Classes Functions Variables
Public Member Functions | Protected Attributes | List of all members
XdmItem Class Reference
Inheritance diagram for XdmItem:
XdmValue XdmAtomicValue XdmNode

Public Member Functions

 XdmItem (jobject)
 
 XdmItem (const XdmItem &item)
 
virtual bool isAtomic ()
 
virtual jobject getUnderlyingValue (SaxonProcessor *proc)
 
sxnc_valuegetUnderlyingCValue ()
 
virtual const char * getStringValue (SaxonProcessor *proc=NULL)
 
XdmItemgetHead ()
 
XdmItemitemAt (int n)
 
int size ()
 
virtual XDM_TYPE getType ()
 
- Public Member Functions inherited from XdmValue
 XdmValue ()
 
 XdmValue (SaxonProcessor *p)
 
template<class ContainerType >
 XdmValue (const ContainerType &container)
 
template<class ForwardIteratorType >
 XdmValue (ForwardIteratorType begin, ForwardIteratorType end)
 
XdmValueaddXdmValueWithType (const char *tStr, const char *val)
 
void addXdmItem (XdmItem *val)
 
XdmValueaddUnderlyingValue (jobject val)
 
 XdmValue (jobject val)
 
void releaseXdmValue ()
 
int getRefCount ()
 
void incrementRefCount ()
 
void decrementRefCount ()
 
void setProcessor (SaxonProcessor *p)
 
const char * checkFailures ()
 

Protected Attributes

sxnc_valuevalue
 
- Protected Attributes inherited from XdmValue
SaxonProcessorproc
 
char * valueType
 
std::vector< XdmItem * > values
 
int xdmSize
 
int refCount
 

Member Function Documentation

XdmItem * XdmItem::getHead ( )
virtual

Get the first item in the sequence

Returns
XdmItem or null if sequence is empty

Reimplemented from XdmValue.

XDM_TYPE XdmItem::getType ( )
virtual

Get the type of the object

Reimplemented from XdmValue.

Reimplemented in XdmNode, and XdmAtomicValue.

jobject XdmItem::getUnderlyingValue ( SaxonProcessor proc)
virtual

Get Java XdmValue object.

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

Reimplemented from XdmValue.

Reimplemented in XdmNode.

XdmItem * XdmItem::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 from XdmValue.

int XdmItem::size ( )
virtual

Get the number of items in the sequence

Reimplemented from XdmValue.


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