00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040 
00041 
00042 
00043 
00044 
00045 
00046 
00047 
00048 
00049 
00050 
00051 
00052 
00053 
00054 
00055 
00056 
00057 
00058 
00059 
00060 
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 
00070 
00071 
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 #ifndef XMLRESOURCEIDENTIFIER_HPP
00081 #define XMLRESOURCEIDENTIFIER_HPP
00082 
00083 XERCES_CPP_NAMESPACE_BEGIN
00084 
00151 class  XMLResourceIdentifier
00152 {
00153 public:
00154 
00155     enum ResourceIdentifierType {
00156         SchemaGrammar = 0,
00157         SchemaImport,
00158         SchemaInclude,
00159         SchemaRedefine ,
00160         ExternalEntity,
00161         UnKnown = 255
00163     };
00164 
00169     XMLResourceIdentifier(const ResourceIdentifierType resourceIdentitiferType
00170                             , const XMLCh* const  systemId
00171                             , const XMLCh* const  nameSpace = 0
00172                             , const XMLCh* const  publicId = 0
00173                             , const XMLCh* const  baseURI = 0);
00174 
00176     ~XMLResourceIdentifier()
00177     {
00178     }
00179 
00181 
00182     
00183     
00184     
00185     ResourceIdentifierType getResourceIdentifierType() const;
00186     const XMLCh* getPublicId()          const;
00187     const XMLCh* getSystemId()          const;
00188     const XMLCh* getSchemaLocation()    const;
00189     const XMLCh* getBaseURI()           const;
00190     const XMLCh* getNameSpace()         const;
00191 
00192 private :
00193 
00194     const ResourceIdentifierType    fResourceIdentifierType;
00195     const XMLCh*                    fPublicId;
00196     const XMLCh*                    fSystemId;
00197     const XMLCh*                    fBaseURI;
00198     const XMLCh*                    fNameSpace;
00199 
00200 
00201     
00202 
00203     
00204     XMLResourceIdentifier(const XMLResourceIdentifier&);
00205 
00206     
00207     XMLResourceIdentifier& operator=(const XMLResourceIdentifier&);
00208 
00209 };
00210 
00211 inline XMLResourceIdentifier::ResourceIdentifierType XMLResourceIdentifier::getResourceIdentifierType() const 
00212 {
00213     return fResourceIdentifierType;
00214 }
00215 
00216 inline const XMLCh* XMLResourceIdentifier::getPublicId() const
00217 {
00218     return fPublicId;
00219 }
00220 
00221 inline const XMLCh* XMLResourceIdentifier::getSystemId() const
00222 {
00223     return fSystemId;
00224 }
00225 
00226 inline const XMLCh* XMLResourceIdentifier::getSchemaLocation() const
00227 {
00228     return fSystemId;
00229 }
00230 
00231 inline const XMLCh* XMLResourceIdentifier::getBaseURI() const
00232 {
00233     return fBaseURI;
00234 }
00235 
00236 inline const XMLCh* XMLResourceIdentifier::getNameSpace() const
00237 {
00238     return fNameSpace;
00239 }
00240 
00241 inline XMLResourceIdentifier::XMLResourceIdentifier(const ResourceIdentifierType resourceIdentifierType
00242                             , const XMLCh* const  systemId
00243                             , const XMLCh* const  nameSpace
00244                             , const XMLCh* const  publicId
00245                             , const XMLCh* const  baseURI )
00246     : fResourceIdentifierType(resourceIdentifierType)
00247     , fPublicId(publicId)
00248     , fSystemId(systemId)
00249     , fBaseURI(baseURI)
00250     , fNameSpace(nameSpace)    
00251 {
00252 }
00253 
00254 XERCES_CPP_NAMESPACE_END
00255 
00256 #endif