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

Public Member Functions

 XdmAtomicValue (const XdmAtomicValue &d)
 
 XdmAtomicValue (jobject)
 
 XdmAtomicValue (jobject, const char *ty)
 
const char * getPrimitiveTypeName ()
 
bool getBooleanValue ()
 
double getDoubleValue ()
 
const char * getStringValue ()
 
long getLongValue ()
 
void setType (const char *ty)
 
bool isAtomic ()
 
XDM_TYPE getType ()
 
- Public Member Functions inherited from XdmItem
 XdmItem (jobject)
 
 XdmItem (const XdmItem &item)
 
virtual void incrementRefCount ()
 
virtual void decrementRefCount ()
 
virtual jobject getUnderlyingValue ()
 
sxnc_valuegetUnderlyingCValue ()
 
XdmItemgetHead ()
 
XdmItemitemAt (int n)
 
int size ()
 
- Public Member Functions inherited from XdmValue
 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 const char * toString ()
 
int getRefCount ()
 
void setProcessor (SaxonProcessor *p)
 
const char * checkFailures ()
 

Additional Inherited Members

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

Member Function Documentation

◆ getStringValue()

const char * XdmAtomicValue::getStringValue ( )
virtual

Get the string value of the item. For a node, this gets the string value of the node. For an atomic value, it has the same effect as casting the value to a string. In all cases the result is the same as applying the XPath string() function.

For atomic values, the result is the same as the result of calling toString. This is not the case for nodes, where toString returns an XML serialization of the node.

Returns
the result of converting the item to a string.
Deprecated:
the SaxonProcessor argument. It has been removed from release version 1.2.1

Reimplemented from XdmItem.

◆ getType()

XDM_TYPE XdmAtomicValue::getType ( )
inlinevirtual

Get the type of the object

Reimplemented from XdmItem.


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