Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

URISupport.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(URISUPPORT_HEADER_GUARD_1357924680)
17 #define URISUPPORT_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 #include <xercesc/util/XMLURL.hpp>
27 
28 
29 
31 
32 
33 
35 
36 
37 
39 
40 
41 
42 XALAN_CPP_NAMESPACE_BEGIN
43 
44 
45 
46 typedef XERCES_CPP_NAMESPACE_QUALIFIER XMLURL XMLURLType;
47 
48 
49 
51 {
52 public:
53 
55 
62  static URLAutoPtrType
63  getURLFromString(const XalanDOMString& urlString,
64  MemoryManagerType& theManager)
65  {
66  return getURLFromString(urlString.c_str(), theManager);
67  }
68 
75  static void
77  const XalanDOMString& urlString,
78  XMLURLType& url,
79  MemoryManagerType& theManager)
80  {
81  getURLFromString(urlString.c_str(), url, theManager);
82  }
83 
90  static URLAutoPtrType
91  getURLFromString(const XalanDOMChar* urlString,
92  MemoryManagerType& theManager);
93 
100  static void
102  const XalanDOMChar* urlString,
103  XMLURLType& url,
104  MemoryManagerType& theManager)
105  {
106  XalanDOMString buffer(theManager);
107 
108  getURLStringFromString(urlString, buffer);
109 
110  url.setURL(buffer.c_str());
111  }
112 
120  static URLAutoPtrType
122  const XalanDOMString& urlString,
123  const XalanDOMString& base,
124  MemoryManagerType& theManager)
125  {
126  XalanDOMString theResult(theManager);
127 
128  getURLStringFromString(urlString, base, theResult);
129 
130  return getURLFromString(theResult, theManager);
131  }
132 
140  static URLAutoPtrType
141  getURLFromString(
142  const XalanDOMChar* urlString,
143  const XalanDOMChar* base);
144 
145 
152  static void
154  const XalanDOMString& urlString,
155  XalanDOMString& theNormalizedURI)
156  {
157  getURLStringFromString(urlString.c_str(), urlString.length(), theNormalizedURI);
158  }
159 
160 
167  static void
169  const XalanDOMChar* urlString,
170  XalanDOMString& theNormalizedURI)
171  {
172  assert(urlString != 0);
173 
174  getURLStringFromString(
175  urlString,
176  XalanDOMString::length(urlString),
177  theNormalizedURI);
178  }
179 
187  static void
188  getURLStringFromString(
189  const XalanDOMChar* urlString,
191  XalanDOMString& theNormalizedURI);
192 
200  static void
202  const XalanDOMString& urlString,
203  const XalanDOMString& base,
204  XalanDOMString& theNormalizedURI)
205  {
206  getURLStringFromString(urlString.c_str(), base.c_str(), theNormalizedURI);
207  }
208 
209 
217  static void
219  const XalanDOMChar* urlString,
220  const XalanDOMChar* base,
221  XalanDOMString& theNormalizedURI)
222  {
223  assert(urlString != 0 && base != 0);
224 
225  getURLStringFromString(
226  urlString,
227  XalanDOMString::length(urlString),
228  base,
230  theNormalizedURI);
231  }
232 
240  static void
241  getURLStringFromString(
242  const XalanDOMChar* urlString,
243  XalanDOMString::size_type urlStringLen,
244  const XalanDOMChar* base,
246  XalanDOMString& theNormalizedURI);
247 
255  static XalanDOMString&
256  NormalizeURIText(XalanDOMString& uriString);
257 
268  {
269  public:
270 
276  InvalidURIException(const XalanDOMString& theMessage,
277  MemoryManagerType& theManager);
278 
279  virtual
281 
282  virtual const XalanDOMChar*
283  getType() const
284  {
285  return m_type;
286  }
287 
288  private:
289  static const XalanDOMChar m_type[];
290  };
291 
292 
293  static const XalanDOMChar s_fileProtocolString1[];
294 
295  static const XalanDOMChar s_fileProtocolString2[];
296 };
297 
298 
299 
300 XALAN_CPP_NAMESPACE_END
301 
302 
303 
304 #endif // URISUPPORT_HEADER_GUARD_1357924680

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo