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
67 virtual bool isNode()
const;
72 virtual bool isNumericValue()
const;
75 virtual bool isDateOrTimeTypeValue()
const;
78 virtual const XMLCh* getPrimitiveTypeURI()
const;
81 virtual const XMLCh* getPrimitiveTypeName()
const = 0;
90 bool preserveNS =
true,
bool preserveType =
true)
const;
104 virtual bool castable(
AtomicObjectType targetIndex,
const XMLCh* targetURI,
const XMLCh* targetType,
115 virtual bool isOfType(
const XMLCh* targetURI,
const XMLCh* targetType,
const DynamicContext* context)
const;
119 virtual bool isInstanceOfType(
const XMLCh* targetURI,
const XMLCh* targetType,
const StaticContext* context)
const;
139 static const XMLCh fgDT_ANYATOMICTYPE[];
158 bool staticCastTable[NumAtomicObjectTypes][NumAtomicObjectTypes];
163 static const CastTable staticCastTable;
virtual const XMLCh * getTypeName() const =0
virtual bool isAtomicValue() const =0
virtual bool isNode() const =0
Definition: EventHandler.hpp:29
RefCountPointer< const AnyAtomicType > Ptr
Definition: AnyAtomicType.hpp:61
virtual bool isFunction() const =0
Super class of all the reference counted wrappers for Items.
Definition: ReferenceCounted.hpp:61
The parse time static context interface.
Definition: StaticContext.hpp:57
AtomicObjectType
Definition: AnyAtomicType.hpp:34
Definition: AnyAtomicType.hpp:30
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:38
virtual const XMLCh * getTypeURI() const =0
virtual const XMLCh * asString(const DynamicContext *context) const =0