/* * Copyright (c) 2001, DecisionSoft Limited All rights reserved. * Please see LICENSE.TXT for more information. */ #ifndef _ATGYEARMONTHORDERIVED_HPP #define _ATGYEARMONTHORDERIVED_HPP #include #include #include "DateOrTimeType.hpp" class Timezone; class DynamicContext; class PATHAN_EXPORT ATGYearMonthOrDerived : public DateOrTimeType { public: /* Get the name of the primitive type (basic type) of this type * (ie "decimal" for xs:decimal) */ virtual const XMLCh* getPrimitiveTypeName() const = 0; /* Get the namespace URI for this type */ virtual const XMLCh* getTypeURI() const = 0; /* Get the name of this type (ie "integer" for xs:integer) */ virtual const XMLCh* getTypeName() const = 0; /* returns the XMLCh* (canonical) representation of this type */ virtual const XMLCh* asString(const DynamicContext* context) const = 0; /* returns true if the two objects are equal * false otherwise */ virtual bool equals(const AnyAtomicType* target, const DynamicContext* context) const = 0; /** Returns true if this is greater than other. Ignores timezones. * Returns false otherwise. */ virtual bool greaterThan(const ATGYearMonthOrDerived* other, const DynamicContext* context) const = 0; /** Returns true if this is less than other. Ignores timezones. * Returns false otherwise. */ virtual bool lessThan(const ATGYearMonthOrDerived* other, const DynamicContext* context) const = 0; /** Returns true if a timezone is defined for this. False otherwise.*/ virtual bool hasTimezone() const = 0; /** Sets the timezone to the given timezone.*/ virtual const ATGYearMonthOrDerived* setTimezone(const Timezone* timezone, const DynamicContext* context) const = 0; /** Releases the memory used by this Item */ virtual void release() const = 0; virtual AnyAtomicType::AtomicObjectType getPrimitiveTypeIndex() const = 0; protected: /* Protected constructor */ ATGYearMonthOrDerived(XPath2MemoryManager* memMgr): DateOrTimeType(memMgr) {}; }; #endif // _ATGYEARMONTHORDERIVED_HPP