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;