00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XERCESBRIDGEHELPER_HEADER_GUARD_1357924680) 00019 #define XERCESBRIDGEHELPER_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp> 00024 00025 00026 00027 #include <cassert> 00028 00029 00030 00031 #if XERCES_VERSION_MAJOR >= 2 00032 #include <xercesc/dom/deprecated/DOM_Node.hpp> 00033 #else 00034 #include <xercesc/dom/DOM_Node.hpp> 00035 #endif 00036 00037 00038 00039 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00040 00041 00042 00043 #include <xalanc/XercesParserLiaison/Deprecated/XercesBridgeNavigator.hpp> 00044 #include <xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp> 00045 00046 00047 00048 XALAN_DECLARE_XERCES_CLASS(DOM_CharacterData) 00049 00050 00051 00052 XALAN_CPP_NAMESPACE_BEGIN 00053 00054 00055 /** 00056 * This class is deprecated. 00057 * 00058 * @deprecated This class is part of the deprecated Xerces DOM bridge. 00059 */ 00060 class XALAN_XERCESPARSERLIAISON_EXPORT XercesBridgeHelper 00061 { 00062 public: 00063 00064 typedef unsigned int XercesStringLengthType; 00065 00066 static const DOMStringType 00067 XalanDOMStringToXercesDOMString(const XalanDOMString& theString) 00068 { 00069 assert(XercesStringLengthType(theString.length()) == theString.length()); 00070 00071 return DOMStringType(&theString[0], XercesStringLengthType(theString.length())); 00072 } 00073 00074 static void 00075 setNodeValue( 00076 DOM_NodeType& theXercesNode, 00077 const XalanDOMString& nodeValue); 00078 00079 static void 00080 normalize(DOM_NodeType& theXercesNode); 00081 00082 static bool 00083 isSupported( 00084 const DOM_NodeType& theXercesNode, 00085 const XalanDOMString& feature, 00086 const XalanDOMString& version); 00087 00088 static void 00089 setPrefix( 00090 DOM_NodeType& theXercesNode, 00091 const XalanDOMString& prefix); 00092 00093 static const XalanDOMString 00094 substringData( 00095 const DOM_CharacterDataType& theXercesNode, 00096 unsigned int offset, 00097 unsigned int count); 00098 00099 static void 00100 appendData( 00101 DOM_CharacterDataType& theXercesNode, 00102 const XalanDOMString& arg); 00103 00104 static void 00105 insertData( 00106 DOM_CharacterDataType& theXercesNode, 00107 unsigned int offset, 00108 const XalanDOMString& arg); 00109 00110 static void 00111 deleteData( 00112 DOM_CharacterDataType& theXercesNode, 00113 unsigned int offset, 00114 unsigned int count); 00115 00116 static void 00117 replaceData( 00118 DOM_CharacterDataType& theXercesNode, 00119 unsigned int offset, 00120 unsigned int count, 00121 const XalanDOMString& arg); 00122 private: 00123 00124 // Not implemented... 00125 XercesBridgeHelper(); 00126 00127 XercesBridgeHelper(const XercesBridgeHelper&); 00128 }; 00129 00130 00131 00132 XALAN_CPP_NAMESPACE_END 00133 00134 00135 00136 #endif // !defined(XERCESBRIDGEHELPER_HEADER_GUARD_1357924680)
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|