10#ifndef SAXON_XDMITEM_h
11#define SAXON_XDMITEM_h
13#include "saxonc_export.h"
14#include "saxonc/XdmValue.h"
44 explicit XdmItem(int64_t objRef);
128 virtual const char *
getStringValue(
const char *encoding =
nullptr);
137 const char *
toString(
const char *encoding =
nullptr);
177 bool operator==(
const XdmItem& other)
const
SAXONC_EXPORT const char * getStringValue(sxnc_environment *environi, sxnc_value value)
Get the string value of the item.
Definition SaxonCXPath.c:223
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition SaxonProcessor.h:117
virtual bool isNode()
Determine whether the item is a node or some other type of item.
Definition XdmItem.cpp:33
virtual bool isFunction()
Determine whether the item is an XDM function or some other type of item.
Definition XdmItem.cpp:35
virtual bool isMap()
Determine whether the item is an XDM map or some other type of item.
Definition XdmItem.cpp:37
virtual bool isArray()
Determine whether the item is an XDM array or some other type of item.
Definition XdmItem.cpp:39
XdmItem()
Default constructor.
Definition XdmItem.cpp:5
const char * stringValue
Definition XdmItem.h:171
virtual bool isAtomic()
Determine whether the item is an atomic value or some other type of item.
Definition XdmItem.cpp:31
const char * itemToString
Definition XdmItem.h:173
virtual int64_t getUnderlyingValue()
Get the underlying Java XdmValue object - internal use only.
Definition XdmValue.cpp:323
virtual XDM_TYPE getType()
Get the type of this XDM value.
Definition XdmValue.cpp:372
virtual XdmItem * itemAt(int n)
Get the n'th item in the sequence, counting from zero.
Definition XdmValue.cpp:363
virtual void incrementRefCount()
Increment reference count of this XdmValue - internal use only This method is used for internal memor...
Definition XdmValue.cpp:285
virtual void decrementRefCount()
Decrement reference count of this XdmValue - internal use only This method is used for internal memor...
Definition XdmValue.cpp:303
virtual XdmItem * getHead()
Get the first item in the sequence represented by this XdmValue.
Definition XdmValue.cpp:313
XdmValue()
Default constructor.
Definition XdmValue.h:40
virtual const char * toString(const char *encoding=nullptr)
Create a string representation of the sequence.
Definition XdmValue.cpp:42
virtual int size()
Get the number of items in the sequence.
Definition XdmValue.cpp:73