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);
52 bool operator==(
const XdmItem& other)
const
86 virtual bool isAtomic();
94 virtual bool isNode();
102 virtual bool isFunction();
109 virtual bool isMap();
116 virtual bool isArray();
139 virtual const char *
getStringValue(
const char *encoding =
nullptr);
148 const char *
toString(
const char *encoding =
nullptr);
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
The class XdmItem represents an item in a sequence, as defined by the XDM data model.
Definition XdmItem.h:31
const char * stringValue
Definition XdmItem.h:182
const char * itemToString
Definition XdmItem.h:184
An XdmValue represents a value in the XDM data model.
Definition XdmValue.h:43
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
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