20#ifndef _ANYATOMICTYPE_HPP
21#define _ANYATOMICTYPE_HPP
23#include <xqilla/framework/XQillaExport.hpp>
25#include <xercesc/util/XercesDefs.hpp>
90 bool preserveNS =
true,
bool preserveType =
true)
const;
163 static const CastTable staticCastTable;
Definition AnyAtomicType.hpp:31
virtual AnyAtomicType::Ptr castAsInternal(AtomicObjectType targetIndex, const XMLCh *targetURI, const XMLCh *targetType, const DynamicContext *context) const
virtual bool isFunction() const
virtual bool equals(const AnyAtomicType::Ptr &target, const DynamicContext *context) const =0
virtual AtomicObjectType getPrimitiveTypeIndex() const =0
AtomicObjectType
Definition AnyAtomicType.hpp:34
@ NOTATION
Definition AnyAtomicType.hpp:52
@ G_MONTH
Definition AnyAtomicType.hpp:47
@ G_YEAR_MONTH
Definition AnyAtomicType.hpp:50
@ DATE_TIME
Definition AnyAtomicType.hpp:40
@ ANY_SIMPLE_TYPE
Definition AnyAtomicType.hpp:35
@ DOUBLE
Definition AnyAtomicType.hpp:43
@ YEAR_MONTH_DURATION
Definition AnyAtomicType.hpp:57
@ BASE_64_BINARY
Definition AnyAtomicType.hpp:37
@ G_DAY
Definition AnyAtomicType.hpp:46
@ TIME
Definition AnyAtomicType.hpp:55
@ DECIMAL
Definition AnyAtomicType.hpp:42
@ HEX_BINARY
Definition AnyAtomicType.hpp:51
@ G_YEAR
Definition AnyAtomicType.hpp:49
@ BOOLEAN
Definition AnyAtomicType.hpp:38
@ QNAME
Definition AnyAtomicType.hpp:53
@ ANY_URI
Definition AnyAtomicType.hpp:36
@ G_MONTH_DAY
Definition AnyAtomicType.hpp:48
@ DURATION
Definition AnyAtomicType.hpp:44
@ NumAtomicObjectTypes
Definition AnyAtomicType.hpp:58
@ FLOAT
Definition AnyAtomicType.hpp:45
@ DATE
Definition AnyAtomicType.hpp:39
@ DAY_TIME_DURATION
Definition AnyAtomicType.hpp:41
@ STRING
Definition AnyAtomicType.hpp:54
@ UNTYPED_ATOMIC
Definition AnyAtomicType.hpp:56
RefCountPointer< const AnyAtomicType > Ptr
Definition AnyAtomicType.hpp:61
virtual bool isAtomicValue() const
AnyAtomicType::Ptr castAs(AtomicObjectType targetIndex, const XMLCh *targetURI, const XMLCh *targetType, const DynamicContext *context) const
virtual void generateEvents(EventHandler *events, const DynamicContext *context, bool preserveNS=true, bool preserveType=true) const
Generate events for this Item to the given EventHandler.
virtual const XMLCh * getTypeURI() const =0
virtual void typeToBuffer(DynamicContext *context, xercesc::XMLBuffer &buffer) const
Debug method to output the type of the item in SequenceType notation.
virtual bool isDateOrTimeTypeValue() const
virtual bool isNumericValue() const
AnyAtomicType::Ptr castAs(AtomicObjectType targetIndex, const DynamicContext *context) const
virtual const XMLCh * getPrimitiveTypeName() const =0
virtual const XMLCh * asString(const DynamicContext *context) const =0
virtual bool isInstanceOfType(const XMLCh *targetURI, const XMLCh *targetType, const StaticContext *context) const
virtual const XMLCh * getPrimitiveTypeURI() const
virtual bool castable(AtomicObjectType targetIndex, const XMLCh *targetURI, const XMLCh *targetType, const DynamicContext *context) const
virtual const XMLCh * getTypeName() const =0
virtual bool isOfType(const XMLCh *targetURI, const XMLCh *targetType, const DynamicContext *context) const
bool castIsSupported(AtomicObjectType targetIndex, const DynamicContext *context) const
Returns true if (a) both the input type and the target type are built-in schema types and cast is sup...
AnyAtomicType::Ptr castAsNoCheck(AtomicObjectType targetIndex, const XMLCh *targetURI, const XMLCh *targetType, const DynamicContext *context) const
virtual bool isNode() const
static const XMLCh fgDT_ANYATOMICTYPE[]
Definition AnyAtomicType.hpp:139
The execution time dynamic context interface.
Definition DynamicContext.hpp:39
Definition EventHandler.hpp:30
Item()
Definition Item.hpp:67
Super class of all the reference counted wrappers for Items.
Definition ReferenceCounted.hpp:62
The parse time static context interface.
Definition StaticContext.hpp:58