SourceForge.net Logo
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 1701582 2015-09-07 09:21:15Z 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 
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 
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
Definition: XMLResourceIdentifier.hpp:103
Definition: XMLResourceIdentifier.hpp:106
ResourceIdentifierType
Definition: XMLResourceIdentifier.hpp:101
Definition: XMLResourceIdentifier.hpp:105
Definition: XMLResourceIdentifier.hpp:104
Definition: XMLResourceIdentifier.hpp:95
~XMLResourceIdentifier()
Destructor.
Definition: XMLResourceIdentifier.hpp:123