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
76  DOM_NodeType& theXercesNode,
77  const XalanDOMString& nodeValue);
78 
79  static void
80  normalize(DOM_NodeType& theXercesNode);
81 
82  static bool
84  const DOM_NodeType& theXercesNode,
85  const XalanDOMString& feature,
86  const XalanDOMString& version);
87 
88  static void
90  DOM_NodeType& theXercesNode,
91  const XalanDOMString& prefix);
92 
93  static const XalanDOMString
95  const DOM_CharacterDataType& theXercesNode,
96  unsigned int offset,
97  unsigned int count);
98 
99  static void
101  DOM_CharacterDataType& theXercesNode,
102  const XalanDOMString& arg);
103 
104  static void
106  DOM_CharacterDataType& theXercesNode,
107  unsigned int offset,
108  const XalanDOMString& arg);
109 
110  static void
112  DOM_CharacterDataType& theXercesNode,
113  unsigned int offset,
114  unsigned int count);
115 
116  static void
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)
DOMStringType
XERCES_CPP_NAMESPACE_QUALIFIER DOMString DOMStringType
Definition: XercesBridgeTypes.hpp:83
XercesBridgeHelper::XalanDOMStringToXercesDOMString
static const DOMStringType XalanDOMStringToXercesDOMString(const XalanDOMString &theString)
Definition: XercesBridgeHelper.hpp:67
XercesBridgeHelper::replaceData
static void replaceData(DOM_CharacterDataType &theXercesNode, unsigned int offset, unsigned int count, const XalanDOMString &arg)
XercesBridgeHelper::appendData
static void appendData(DOM_CharacterDataType &theXercesNode, const XalanDOMString &arg)
XalanDOMString.hpp
XercesBridgeHelper
This class is deprecated.
Definition: XercesBridgeHelper.hpp:61
XercesBridgeHelper::substringData
static const XalanDOMString substringData(const DOM_CharacterDataType &theXercesNode, unsigned int offset, unsigned int count)
DOM_NodeType
XERCES_CPP_NAMESPACE_QUALIFIER DOM_Node DOM_NodeType
Definition: XercesBridgeTypes.hpp:71
XercesBridgeHelper::isSupported
static bool isSupported(const DOM_NodeType &theXercesNode, const XalanDOMString &feature, const XalanDOMString &version)
XercesBridgeHelper::XercesStringLengthType
unsigned int XercesStringLengthType
Definition: XercesBridgeHelper.hpp:64
XercesBridgeHelper::setPrefix
static void setPrefix(DOM_NodeType &theXercesNode, const XalanDOMString &prefix)
XercesParserLiaisonDefinitions.hpp
DOM_CharacterDataType
XERCES_CPP_NAMESPACE_QUALIFIER DOM_CharacterData DOM_CharacterDataType
Definition: XercesBridgeTypes.hpp:60
XalanDOMString
Definition: XalanDOMString.hpp:46
XALAN_XERCESPARSERLIAISON_EXPORT
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:39
XercesBridgeHelper::deleteData
static void deleteData(DOM_CharacterDataType &theXercesNode, unsigned int offset, unsigned int count)
XercesBridgeHelper::normalize
static void normalize(DOM_NodeType &theXercesNode)
XercesBridgeHelper::setNodeValue
static void setNodeValue(DOM_NodeType &theXercesNode, const XalanDOMString &nodeValue)
XercesBridgeNavigator.hpp
XercesBridgeHelper::insertData
static void insertData(DOM_CharacterDataType &theXercesNode, unsigned int offset, const XalanDOMString &arg)
XercesBridgeTypes.hpp
XalanDOMString::length
size_type length() const
Definition: XalanDOMString.hpp:213

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