Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XercesBridgeHelper.hpp

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

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