22 #ifndef _ANYATOMICTYPE_HPP
23 #define _ANYATOMICTYPE_HPP
25 #include <xqilla/framework/XQillaExport.hpp>
27 #include <xercesc/util/XercesDefs.hpp>
43 DAY_TIME_DURATION = 6,
59 YEAR_MONTH_DURATION= 22,
60 NumAtomicObjectTypes= 23
69 virtual bool isNode()
const;
74 virtual bool isNumericValue()
const;
77 virtual bool isDateOrTimeTypeValue()
const;
80 virtual const XMLCh* getPrimitiveTypeURI()
const;
83 virtual const XMLCh* getPrimitiveTypeName()
const = 0;
92 bool preserveNS =
true,
bool preserveType =
true)
const;
106 virtual bool castable(
AtomicObjectType targetIndex,
const XMLCh* targetURI,
const XMLCh* targetType,
117 virtual bool isOfType(
const XMLCh* targetURI,
const XMLCh* targetType,
const DynamicContext* context)
const;
121 virtual bool isInstanceOfType(
const XMLCh* targetURI,
const XMLCh* targetType,
const StaticContext* context)
const;
141 static const XMLCh fgDT_ANYATOMICTYPE[];
160 bool staticCastTable[NumAtomicObjectTypes][NumAtomicObjectTypes];
165 static const CastTable staticCastTable;
virtual const XMLCh * getTypeName() const =0
virtual bool isAtomicValue() const =0
virtual bool isNode() const =0
Definition: EventHandler.hpp:31
RefCountPointer< const AnyAtomicType > Ptr
Definition: AnyAtomicType.hpp:63
virtual bool isFunction() const =0
Super class of all the reference counted wrappers for Items.
Definition: ReferenceCounted.hpp:58
The parse time static context interface.
Definition: StaticContext.hpp:59
AtomicObjectType
Definition: AnyAtomicType.hpp:36
Definition: AnyAtomicType.hpp:32
virtual void generateEvents(EventHandler *events, const DynamicContext *context, bool preserveNS=true, bool preserveType=true) const =0
Generate events for this Item to the given EventHandler.
virtual void typeToBuffer(DynamicContext *context, xercesc::XMLBuffer &buffer) const =0
Debug method to output the type of the item in SequenceType notation.
The execution time dynamic context interface.
Definition: DynamicContext.hpp:39
virtual const XMLCh * getTypeURI() const =0
virtual const XMLCh * asString(const DynamicContext *context) const =0