Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


XercesBridgeHelper.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #if !defined(XERCESBRIDGEHELPER_HEADER_GUARD_1357924680)
19 #define XERCESBRIDGEHELPER_HEADER_GUARD_1357924680
20 
21 
22 
24 
25 
26 
27 #include <cassert>
28 
29 
30 
31 #if XERCES_VERSION_MAJOR >= 2
32 #include <xercesc/dom/deprecated/DOM_Node.hpp>
33 #else
34 #include <xercesc/dom/DOM_Node.hpp>
35 #endif
36 
37 
38 
40 
41 
42 
45 
46 
47 
48 XALAN_DECLARE_XERCES_CLASS(DOM_CharacterData)
49 
50 
51 
52 XALAN_CPP_NAMESPACE_BEGIN
53 
54 
55 /**
56  * This class is deprecated.
57  *
58  * @deprecated This class is part of the deprecated Xerces DOM bridge.
59  */
61 {
62 public:
63 
64  typedef unsigned int XercesStringLengthType;
65 
66  static const DOMStringType
68  {
69  assert(XercesStringLengthType(theString.length()) == theString.length());
70 
71  return DOMStringType(&theString[0], XercesStringLengthType(theString.length()));
72  }
73 
74  static void
75  setNodeValue(
76  DOM_NodeType& theXercesNode,
77  const XalanDOMString& nodeValue);
78 
79  static void
80  normalize(DOM_NodeType& theXercesNode);
81 
82  static bool
83  isSupported(
84  const DOM_NodeType& theXercesNode,
85  const XalanDOMString& feature,
86  const XalanDOMString& version);
87 
88  static void
89  setPrefix(
90  DOM_NodeType& theXercesNode,
91  const XalanDOMString& prefix);
92 
93  static const XalanDOMString
94  substringData(
95  const DOM_CharacterDataType& theXercesNode,
96  unsigned int offset,
97  unsigned int count);
98 
99  static void
100  appendData(
101  DOM_CharacterDataType& theXercesNode,
102  const XalanDOMString& arg);
103 
104  static void
105  insertData(
106  DOM_CharacterDataType& theXercesNode,
107  unsigned int offset,
108  const XalanDOMString& arg);
109 
110  static void
111  deleteData(
112  DOM_CharacterDataType& theXercesNode,
113  unsigned int offset,
114  unsigned int count);
115 
116  static void
117  replaceData(
118  DOM_CharacterDataType& theXercesNode,
119  unsigned int offset,
120  unsigned int count,
121  const XalanDOMString& arg);
122 private:
123 
124  // Not implemented...
126 
128 };
129 
130 
131 
132 XALAN_CPP_NAMESPACE_END
133 
134 
135 
136 #endif // !defined(XERCESBRIDGEHELPER_HEADER_GUARD_1357924680)
static const DOMStringType XalanDOMStringToXercesDOMString(const XalanDOMString &theString)
#define XALAN_XERCESPARSERLIAISON_EXPORT
unsigned int XercesStringLengthType
size_type length() const
XERCES_CPP_NAMESPACE_QUALIFIER DOM_CharacterData DOM_CharacterDataType
This class is deprecated.
XERCES_CPP_NAMESPACE_QUALIFIER DOM_Node DOM_NodeType
XERCES_CPP_NAMESPACE_QUALIFIER DOMString DOMStringType

Interpreting class diagrams

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

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

Apache Logo