Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XercesBridgeHelper.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(XERCESBRIDGEHELPER_HEADER_GUARD_1357924680)
17 #define XERCESBRIDGEHELPER_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
24 
25 #include <cassert>
26 
27 
28 
29 #if XERCES_VERSION_MAJOR >= 2
30 #include <xercesc/dom/deprecated/DOM_Node.hpp>
31 #else
32 #include <xercesc/dom/DOM_Node.hpp>
33 #endif
34 
35 
36 
38 
39 
40 
43 
44 
45 
46 XALAN_DECLARE_XERCES_CLASS(DOM_CharacterData)
47 
48 
49 
50 XALAN_CPP_NAMESPACE_BEGIN
51 
52 
59 {
60 public:
61 
62  typedef unsigned int XercesStringLengthType;
63 
64  static const DOMStringType
66  {
67  assert(XercesStringLengthType(theString.length()) == theString.length());
68 
69  return DOMStringType(&theString[0], XercesStringLengthType(theString.length()));
70  }
71 
72  static void
73  setNodeValue(
74  DOM_NodeType& theXercesNode,
75  const XalanDOMString& nodeValue);
76 
77  static void
78  normalize(DOM_NodeType& theXercesNode);
79 
80  static bool
81  isSupported(
82  const DOM_NodeType& theXercesNode,
83  const XalanDOMString& feature,
84  const XalanDOMString& version);
85 
86  static void
87  setPrefix(
88  DOM_NodeType& theXercesNode,
89  const XalanDOMString& prefix);
90 
91  static const XalanDOMString
92  substringData(
93  const DOM_CharacterDataType& theXercesNode,
94  unsigned int offset,
95  unsigned int count);
96 
97  static void
98  appendData(
99  DOM_CharacterDataType& theXercesNode,
100  const XalanDOMString& arg);
101 
102  static void
103  insertData(
104  DOM_CharacterDataType& theXercesNode,
105  unsigned int offset,
106  const XalanDOMString& arg);
107 
108  static void
109  deleteData(
110  DOM_CharacterDataType& theXercesNode,
111  unsigned int offset,
112  unsigned int count);
113 
114  static void
115  replaceData(
116  DOM_CharacterDataType& theXercesNode,
117  unsigned int offset,
118  unsigned int count,
119  const XalanDOMString& arg);
120 private:
121 
122  // Not implemented...
123  XercesBridgeHelper();
124 
125  XercesBridgeHelper(const XercesBridgeHelper&);
126 };
127 
128 
129 
130 XALAN_CPP_NAMESPACE_END
131 
132 
133 
134 #endif // !defined(XERCESBRIDGEHELPER_HEADER_GUARD_1357924680)
size_type length() const
Definition: XalanDOMString.hpp:209
static const DOMStringType XalanDOMStringToXercesDOMString(const XalanDOMString &theString)
Definition: XercesBridgeHelper.hpp:65
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:37
unsigned int XercesStringLengthType
Definition: XercesBridgeHelper.hpp:62
XERCES_CPP_NAMESPACE_QUALIFIER DOM_CharacterData DOM_CharacterDataType
Definition: XercesBridgeTypes.hpp:58
Definition: XalanDOMString.hpp:42
This class is deprecated.
Definition: XercesBridgeHelper.hpp:58
XERCES_CPP_NAMESPACE_QUALIFIER DOM_Node DOM_NodeType
Definition: XercesBridgeTypes.hpp:69
XERCES_CPP_NAMESPACE_QUALIFIER DOMString DOMStringType
Definition: XercesBridgeTypes.hpp:81

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