Xerces-C++ 3.1.2

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

XMLResourceIdentifier.hpp
Go to the documentation of this file.
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 /*
19 * $Id: XMLResourceIdentifier.hpp 527149 2007-04-10 14:56:39Z amassari $
20 */
21
22 #if !defined(XERCESC_INCLUDE_GUARD_XMLRESOURCEIDENTIFIER_HPP)
23 #define XERCESC_INCLUDE_GUARD_XMLRESOURCEIDENTIFIER_HPP
24
25 XERCES_CPP_NAMESPACE_BEGIN
26
27 class Locator;
28
95 class XMLUTIL_EXPORT XMLResourceIdentifier
96 {
97 public:
98
101 enum ResourceIdentifierType {
102 SchemaGrammar = 0,
103 SchemaImport,
104 SchemaInclude,
105 SchemaRedefine ,
106 ExternalEntity,
107 UnKnown = 255
108 };
110
115 XMLResourceIdentifier(const ResourceIdentifierType resourceIdentitiferType
116 , const XMLCh* const systemId
117 , const XMLCh* const nameSpace = 0
118 , const XMLCh* const publicId = 0
119 , const XMLCh* const baseURI = 0
120 , const Locator* locator = 0);
121
123 ~XMLResourceIdentifier()
124 {
125 }
126
128
129 // -----------------------------------------------------------------------
130 // Getter methods
131 // -----------------------------------------------------------------------
134 ResourceIdentifierType getResourceIdentifierType() const;
135 const XMLCh* getPublicId() const;
136 const XMLCh* getSystemId() const;
137 const XMLCh* getSchemaLocation() const;
138 const XMLCh* getBaseURI() const;
139 const XMLCh* getNameSpace() const;
140 const Locator* getLocator() const;
142
143 private :
144
145 const ResourceIdentifierType fResourceIdentifierType;
146 const XMLCh* fPublicId;
147 const XMLCh* fSystemId;
148 const XMLCh* fBaseURI;
149 const XMLCh* fNameSpace;
150 const Locator* fLocator;
151
152 /* Unimplemented constructors and operators */
153
154 /* Copy constructor */
155 XMLResourceIdentifier(const XMLResourceIdentifier&);
156
157 /* Assignment operator */
158 XMLResourceIdentifier& operator=(const XMLResourceIdentifier&);
159
160 };
161
162 inline XMLResourceIdentifier::ResourceIdentifierType XMLResourceIdentifier::getResourceIdentifierType() const
163 {
164 return fResourceIdentifierType;
165 }
166
167 inline const XMLCh* XMLResourceIdentifier::getPublicId() const
168 {
169 return fPublicId;
170 }
171
172 inline const XMLCh* XMLResourceIdentifier::getSystemId() const
173 {
174 return fSystemId;
175 }
176
177 inline const XMLCh* XMLResourceIdentifier::getSchemaLocation() const
178 {
179 return fSystemId;
180 }
181
182 inline const XMLCh* XMLResourceIdentifier::getBaseURI() const
183 {
184 return fBaseURI;
185 }
186
187 inline const XMLCh* XMLResourceIdentifier::getNameSpace() const
188 {
189 return fNameSpace;
190 }
191
192 inline const Locator* XMLResourceIdentifier::getLocator() const
193 {
194 return fLocator;
195 }
196
197 inline XMLResourceIdentifier::XMLResourceIdentifier(const ResourceIdentifierType resourceIdentifierType
198 , const XMLCh* const systemId
199 , const XMLCh* const nameSpace
200 , const XMLCh* const publicId
201 , const XMLCh* const baseURI
202 , const Locator* locator )
203 : fResourceIdentifierType(resourceIdentifierType)
204 , fPublicId(publicId)
205 , fSystemId(systemId)
206 , fBaseURI(baseURI)
207 , fNameSpace(nameSpace)
208 , fLocator(locator)
209 {
210 }
211
212 XERCES_CPP_NAMESPACE_END
213
214 #endif
XMLResourceIdentifier::getBaseURI
const XMLCh * getBaseURI() const
Definition: XMLResourceIdentifier.hpp:182
XMLResourceIdentifier::~XMLResourceIdentifier
~XMLResourceIdentifier()
Destructor.
Definition: XMLResourceIdentifier.hpp:123
XMLResourceIdentifier::getLocator
const Locator * getLocator() const
Definition: XMLResourceIdentifier.hpp:192
XMLResourceIdentifier::getSystemId
const XMLCh * getSystemId() const
Definition: XMLResourceIdentifier.hpp:172
XMLResourceIdentifier::ResourceIdentifierType
ResourceIdentifierType
Definition: XMLResourceIdentifier.hpp:101
Locator
Interface for associating a SAX event with a document location.
Definition: Locator.hpp:54
XMLResourceIdentifier::SchemaImport
Definition: XMLResourceIdentifier.hpp:103
XMLResourceIdentifier::XMLResourceIdentifier
XMLResourceIdentifier(const ResourceIdentifierType resourceIdentitiferType, const XMLCh *const systemId, const XMLCh *const nameSpace=0, const XMLCh *const publicId=0, const XMLCh *const baseURI=0, const Locator *locator=0)
Constructor.
Definition: XMLResourceIdentifier.hpp:197
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLResourceIdentifier
Definition: XMLResourceIdentifier.hpp:95
XMLResourceIdentifier::getNameSpace
const XMLCh * getNameSpace() const
Definition: XMLResourceIdentifier.hpp:187
XMLCh
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
XMLResourceIdentifier::SchemaRedefine
Definition: XMLResourceIdentifier.hpp:105
XMLResourceIdentifier::SchemaInclude
Definition: XMLResourceIdentifier.hpp:104
XMLUTIL_EXPORT
#define XMLUTIL_EXPORT
Definition: XercesDefs.hpp:162
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLResourceIdentifier::ExternalEntity
Definition: XMLResourceIdentifier.hpp:106
XMLResourceIdentifier::getSchemaLocation
const XMLCh * getSchemaLocation() const
Definition: XMLResourceIdentifier.hpp:177
XMLResourceIdentifier::getPublicId
const XMLCh * getPublicId() const
Definition: XMLResourceIdentifier.hpp:167
XMLResourceIdentifier::getResourceIdentifierType
ResourceIdentifierType getResourceIdentifierType() const
Definition: XMLResourceIdentifier.hpp:162