Xalan-C++ API Reference  1.12.0
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 namespace XERCES_CPP_NAMESPACE
49 {
50  class DOM_CharacterData;
51 }
52 
53 
54 
55 namespace XALAN_CPP_NAMESPACE {
56 
57 
58 /**
59  * This class is deprecated.
60  *
61  * @deprecated This class is part of the deprecated Xerces DOM bridge.
62  */
64 {
65 public:
66 
67  typedef unsigned int XercesStringLengthType;
68 
69  static const DOMStringType
71  {
72  assert(XercesStringLengthType(theString.length()) == theString.length());
73 
74  return DOMStringType(&theString[0], XercesStringLengthType(theString.length()));
75  }
76 
77  static void
78  setNodeValue(
79  DOM_NodeType& theXercesNode,
80  const XalanDOMString& nodeValue);
81 
82  static void
83  normalize(DOM_NodeType& theXercesNode);
84 
85  static bool
86  isSupported(
87  const DOM_NodeType& theXercesNode,
88  const XalanDOMString& feature,
89  const XalanDOMString& version);
90 
91  static void
92  setPrefix(
93  DOM_NodeType& theXercesNode,
94  const XalanDOMString& prefix);
95 
96  static const XalanDOMString
97  substringData(
98  const DOM_CharacterDataType& theXercesNode,
99  unsigned int offset,
100  unsigned int count);
101 
102  static void
103  appendData(
104  DOM_CharacterDataType& theXercesNode,
105  const XalanDOMString& arg);
106 
107  static void
108  insertData(
109  DOM_CharacterDataType& theXercesNode,
110  unsigned int offset,
111  const XalanDOMString& arg);
112 
113  static void
114  deleteData(
115  DOM_CharacterDataType& theXercesNode,
116  unsigned int offset,
117  unsigned int count);
118 
119  static void
120  replaceData(
121  DOM_CharacterDataType& theXercesNode,
122  unsigned int offset,
123  unsigned int count,
124  const XalanDOMString& arg);
125 private:
126 
127  // Not implemented...
129 
131 };
132 
133 
134 
135 }
136 
137 
138 
139 #endif // !defined(XERCESBRIDGEHELPER_HEADER_GUARD_1357924680)
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XercesBridgeHelper
This class is deprecated.
Definition: XercesBridgeHelper.hpp:63
xalanc::XercesBridgeHelper::XercesStringLengthType
unsigned int XercesStringLengthType
Definition: XercesBridgeHelper.hpp:67
XalanDOMString.hpp
xalanc::XercesBridgeHelper::XalanDOMStringToXercesDOMString
static const DOMStringType XalanDOMStringToXercesDOMString(const XalanDOMString &theString)
Definition: XercesBridgeHelper.hpp:70
xalanc::XalanDOMString::length
size_type length() const
Definition: XalanDOMString.hpp:209
xalanc::DOM_NodeType
xercesc::DOM_Node DOM_NodeType
Definition: XercesBridgeTypes.hpp:74
XercesParserLiaisonDefinitions.hpp
XALAN_XERCESPARSERLIAISON_EXPORT
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:39
xalanc::DOMStringType
xercesc::DOMString DOMStringType
Definition: XercesBridgeTypes.hpp:86
XercesBridgeNavigator.hpp
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45
XercesBridgeTypes.hpp
xalanc::DOM_CharacterDataType
xercesc::DOM_CharacterData DOM_CharacterDataType
Definition: XercesBridgeTypes.hpp:63