20#ifndef _ANYATOMICTYPE_HPP
21#define _ANYATOMICTYPE_HPP
23#include <xqilla/framework/XQillaExport.hpp>
25#include <xercesc/util/XercesDefs.hpp>
41 DAY_TIME_DURATION = 6,
57 YEAR_MONTH_DURATION= 22,
58 NumAtomicObjectTypes= 23
90 bool preserveNS =
true,
bool preserveType =
true)
const;
139 static const XMLCh fgDT_ANYATOMICTYPE[];
158 bool staticCastTable[NumAtomicObjectTypes][NumAtomicObjectTypes];
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
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
The execution time dynamic context interface.
Definition: DynamicContext.hpp:39
Definition: EventHandler.hpp:30
Super class of all the reference counted wrappers for Items.
Definition: ReferenceCounted.hpp:62
The parse time static context interface.
Definition: StaticContext.hpp:58