Xerces-C++ 3.2.5
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$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_XMLRESOURCEIDENTIFIER_HPP)
23#define XERCESC_INCLUDE_GUARD_XMLRESOURCEIDENTIFIER_HPP
24
26
27class Locator;
28
96{
97public:
98
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
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
143private :
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 */
156
157 /* Assignment operator */
159
160};
161
166
168{
169 return fPublicId;
170}
171
173{
174 return fSystemId;
175}
176
178{
179 return fSystemId;
180}
181
183{
184 return fBaseURI;
185}
186
188{
189 return fNameSpace;
190}
191
193{
194 return fLocator;
195}
196
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
213
214#endif
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XMLUTIL_EXPORT
Definition XercesDefs.hpp:162
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
uint16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
Interface for associating a SAX event with a document location.
Definition Locator.hpp:55
Definition XMLResourceIdentifier.hpp:96
const Locator * getLocator() const
Definition XMLResourceIdentifier.hpp:192
const XMLCh * getSystemId() const
Definition XMLResourceIdentifier.hpp:172
ResourceIdentifierType
Definition XMLResourceIdentifier.hpp:101
@ ExternalEntity
Definition XMLResourceIdentifier.hpp:106
@ SchemaRedefine
Definition XMLResourceIdentifier.hpp:105
@ SchemaImport
Definition XMLResourceIdentifier.hpp:103
@ SchemaInclude
Definition XMLResourceIdentifier.hpp:104
const XMLCh * getNameSpace() const
Definition XMLResourceIdentifier.hpp:187
const XMLCh * getBaseURI() const
Definition XMLResourceIdentifier.hpp:182
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
~XMLResourceIdentifier()
Destructor.
Definition XMLResourceIdentifier.hpp:123
ResourceIdentifierType getResourceIdentifierType() const
Definition XMLResourceIdentifier.hpp:162
const XMLCh * getSchemaLocation() const
Definition XMLResourceIdentifier.hpp:177
const XMLCh * getPublicId() const
Definition XMLResourceIdentifier.hpp:167