10#ifndef SAXON_XDMATOMICVALUE_h
11#define SAXON_XDMATOMICVALUE_h
13#include "saxonc_export.h"
14#include "saxonc/XdmItem.h"
69 const char *getPrimitiveTypeName();
120 void setType(
const char *ty);
145 XDM_TYPE
getType() {
return XDM_ATOMIC_VALUE; }
SAXONC_EXPORT bool getBooleanValue(sxnc_environment *environi, sxnc_value value)
Get the boolean value of the item.
Definition SaxonCXPath.c:321
SAXONC_EXPORT long getLongValue(sxnc_environment *environi, sxnc_value value, long failureVal)
Get the long value of the item.
Definition SaxonCXPath.c:326
SAXONC_EXPORT double getDoubleValue(sxnc_environment *environi, sxnc_value value, double failureVal)
Get the double value of the item.
Definition SaxonCXPath.c:338
The class XdmAtomicValue represents an item in an XPath sequence that is an atomic value.
Definition XdmAtomicValue.h:27
bool isAtomic()
Determine whether the item is an atomic value or some other type of item.
Definition XdmAtomicValue.h:133
XDM_TYPE getType()
Get the type of this XDM value.
Definition XdmAtomicValue.h:145
The class XdmItem represents an item in a sequence, as defined by the XDM data model.
Definition XdmItem.h:31
virtual const char * getStringValue(const char *encoding=nullptr)
Get the string value of the item.
Definition XdmItem.cpp:56
virtual XdmItem * getHead()
Get the first item in the sequence consisting of just this item.
Definition XdmItem.cpp:41