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 #ifndef XMLRESOURCEIDENTIFIER_HPP
00072 #define XMLRESOURCEIDENTIFIER_HPP
00073
00074 XERCES_CPP_NAMESPACE_BEGIN
00075
00142 class XMLResourceIdentifier
00143 {
00144 public:
00145
00146 enum ResourceIdentifierType {
00147 SchemaGrammar = 0,
00148 SchemaImport,
00149 SchemaInclude,
00150 SchemaRedefine ,
00151 ExternalEntity,
00152 UnKnown = 255
00154 };
00155
00160 XMLResourceIdentifier(const ResourceIdentifierType resourceIdentitiferType
00161 , const XMLCh* const systemId
00162 , const XMLCh* const nameSpace = 0
00163 , const XMLCh* const publicId = 0
00164 , const XMLCh* const baseURI = 0);
00165
00167 virtual ~XMLResourceIdentifier()
00168 {
00169 }
00170
00172
00173
00174
00175
00176 const ResourceIdentifierType getResourceIdentifierType() const;
00177 const XMLCh* getPublicId() const;
00178 const XMLCh* getSystemId() const;
00179 const XMLCh* getSchemaLocation() const;
00180 const XMLCh* getBaseURI() const;
00181 const XMLCh* getNameSpace() const;
00182
00183 private :
00184
00185 const ResourceIdentifierType fResourceIdentifierType;
00186 const XMLCh* fPublicId;
00187 const XMLCh* fSystemId;
00188 const XMLCh* fBaseURI;
00189 const XMLCh* fNameSpace;
00190
00191
00192
00193
00194
00195 XMLResourceIdentifier(const XMLResourceIdentifier&);
00196
00197
00198 XMLResourceIdentifier& operator=(const XMLResourceIdentifier&);
00199
00200 };
00201
00202 inline const XMLResourceIdentifier::ResourceIdentifierType XMLResourceIdentifier::getResourceIdentifierType() const
00203 {
00204 return fResourceIdentifierType;
00205 }
00206
00207 inline const XMLCh* XMLResourceIdentifier::getPublicId() const
00208 {
00209 return fPublicId;
00210 }
00211
00212 inline const XMLCh* XMLResourceIdentifier::getSystemId() const
00213 {
00214 return fSystemId;
00215 }
00216
00217 inline const XMLCh* XMLResourceIdentifier::getSchemaLocation() const
00218 {
00219 return fSystemId;
00220 }
00221
00222 inline const XMLCh* XMLResourceIdentifier::getBaseURI() const
00223 {
00224 return fBaseURI;
00225 }
00226
00227 inline const XMLCh* XMLResourceIdentifier::getNameSpace() const
00228 {
00229 return fNameSpace;
00230 }
00231
00232 inline XMLResourceIdentifier::XMLResourceIdentifier(const ResourceIdentifierType resourceIdentifierType
00233 , const XMLCh* const systemId
00234 , const XMLCh* const nameSpace
00235 , const XMLCh* const publicId
00236 , const XMLCh* const baseURI ) :
00237 fResourceIdentifierType(resourceIdentifierType),
00238 fSystemId(systemId),
00239 fNameSpace(nameSpace),
00240 fPublicId(publicId),
00241 fBaseURI(baseURI)
00242 {
00243 }
00244
00245 XERCES_CPP_NAMESPACE_END
00246
00247 #endif