/* * Copyright (c) 2001, DecisionSoft Limited All rights reserved. * Please see LICENSE.TXT for more information. */ #ifndef _ATNOTATIONORDERIVED_HPP #define _ATNOTATIONORDERIVED_HPP #include #include #include class DynamicContext; class PATHAN_EXPORT ATNotationOrDerived : public AnyAtomicType { 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' URI are equal (string comparison) * false otherwise */ virtual bool equals(const AnyAtomicType* target, 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 */ ATNotationOrDerived(XPath2MemoryManager* memMgr): AnyAtomicType(memMgr) {}; }; #endif // _ATNOTATIONORDERIVED_HPP