Xerces-C++  3.1.2
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 
26 
27 class Locator;
28 
96 {
97 public:
98 
102  SchemaGrammar = 0,
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 
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 */
156 
157  /* Assignment operator */
158  XMLResourceIdentifier& operator=(const XMLResourceIdentifier&);
159 
160 };
161 
163 {
164  return fResourceIdentifierType;
165 }
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
const XMLCh * getBaseURI() const
Definition: XMLResourceIdentifier.hpp:182
~XMLResourceIdentifier()
Destructor.
Definition: XMLResourceIdentifier.hpp:123
const Locator * getLocator() const
Definition: XMLResourceIdentifier.hpp:192
const XMLCh * getSystemId() const
Definition: XMLResourceIdentifier.hpp:172
ResourceIdentifierType
Definition: XMLResourceIdentifier.hpp:101
Interface for associating a SAX event with a document location.
Definition: Locator.hpp:54
Definition: XMLResourceIdentifier.hpp:103
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
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
Definition: XMLResourceIdentifier.hpp:95
const XMLCh * getNameSpace() const
Definition: XMLResourceIdentifier.hpp:187
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
Definition: XMLResourceIdentifier.hpp:105
Definition: XMLResourceIdentifier.hpp:104
#define XMLUTIL_EXPORT
Definition: XercesDefs.hpp:162
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Definition: XMLResourceIdentifier.hpp:106
const XMLCh * getSchemaLocation() const
Definition: XMLResourceIdentifier.hpp:177
const XMLCh * getPublicId() const
Definition: XMLResourceIdentifier.hpp:167
ResourceIdentifierType getResourceIdentifierType() const
Definition: XMLResourceIdentifier.hpp:162