SourceForge.net Logo

ATQNameOrDerived.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2001-2006
00003  *     DecisionSoft Limited. All rights reserved.
00004  * Copyright (c) 2004-2006
00005  *     Progress Software Corporation. All rights reserved.
00006  * Copyright (c) 2004-2006
00007  *     Oracle. All rights reserved.
00008  *
00009  * See the file LICENSE for redistribution information.
00010  *
00011  * $Id: ATQNameOrDerived.hpp,v 1.9 2006/11/01 16:37:14 jpcs Exp $
00012  */
00013 
00014 #ifndef _ATQNAMEORDERIVED_HPP
00015 #define _ATQNAMEORDERIVED_HPP
00016 
00017 #include <xercesc/util/XercesDefs.hpp>
00018 #include <xqilla/framework/XQillaExport.hpp>
00019 #include <xqilla/items/AnyAtomicType.hpp>
00020 
00021 class DynamicContext;
00022 
00023 class XQILLA_API ATQNameOrDerived : public AnyAtomicType
00024 {
00025 public:
00026   typedef RefCountPointer<const ATQNameOrDerived> Ptr;
00027 
00028   /* Get the name of the primitive type (basic type) of this type
00029    * (ie "decimal" for xs:decimal) */
00030   virtual const XMLCh* getPrimitiveTypeName() const = 0;
00031 
00032   /* Get the namespace URI for this type */
00033   virtual const XMLCh* getTypeURI() const = 0;
00034 
00035   /* Get the name of this type  (ie "integer" for xs:integer) */
00036   virtual const XMLCh* getTypeName() const = 0;
00037 
00038   /* returns the URI */
00039   virtual const XMLCh* getURI() const = 0;
00040 
00041   /* returns the prefix */
00042   virtual const XMLCh* getPrefix() const = 0;
00043 
00044   /* returns the name */
00045   virtual const XMLCh* getName() const = 0;
00046 
00047   /* returns the XMLCh* (canonical) representation of this type */
00048   virtual const XMLCh* asString(const DynamicContext* context) const = 0;
00049 
00050   /* returns true if the two objects' URI are equal (string comparison)
00051    * false otherwise */
00052   virtual bool equals(const AnyAtomicType::Ptr &target, const DynamicContext* context) const = 0;
00053 
00056   virtual int compare(const ATQNameOrDerived::Ptr &other, const DynamicContext *context) const = 0;
00057  
00058   virtual AnyAtomicType::AtomicObjectType getPrimitiveTypeIndex() const = 0;
00059 };
00060 
00061 #endif //  _ATQNAMEORDERIVED_HPP

Generated on Fri Aug 31 14:37:35 2007 for XQilla Simple API by  doxygen 1.5.1