## 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

# XercesTextBridge.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(XERCESTEXTBRIDGE_HEADER_GUARD_1357924680)
    00017 #define XERCESTEXTBRIDGE_HEADER_GUARD_1357924680
    00018
    00019
    00020
    00021 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp>
    00022
    00023
    00024
    00025 #if XERCES_VERSION_MAJOR >= 2
    00026 #include <xercesc/dom/deprecated/DOM_Text.hpp>
    00027 #else
    00028 #include <xercesc/dom/DOM_Text.hpp>
    00029 #endif
    00030
    00031
    00032 #include <xalanc/XalanDOM/XalanText.hpp>
    00033
    00034
    00035
    00036 #include <xalanc/XercesParserLiaison/Deprecated/XercesDOM_NodeHack.hpp>
    00037
    00038
    00039
    00040 XALAN_CPP_NAMESPACE_BEGIN
    00041
    00042
    00043
    00044 class XercesBridgeNavigator;
    00045
    00046
    00052 class XALAN_XERCESPARSERLIAISON_EXPORT XercesTextBridge : public XalanText
    00053 {
    00054 public:
    00055
    00056     typedef XERCES_CPP_NAMESPACE_QUALIFIER DOM_Text     DOM_TextType;
    00057
    00058     XercesTextBridge(
    00059             const DOM_TextType&             theXercesText,
    00060             const XercesBridgeNavigator&    theNavigator);
    00061
    00062     virtual
    00063     ~XercesTextBridge();
    00064
    00065
    00069     virtual const XalanDOMString&
    00070     getNodeName() const;
    00071
    00075     virtual const XalanDOMString&
    00076     getNodeValue() const;
    00077
    00081     virtual NodeType
    00082     getNodeType() const;
    00083
    00093     virtual XalanNode*
    00094     getParentNode() const;
    00095
    00109     virtual const XalanNodeList*
    00110     getChildNodes() const;
    00111
    00117     virtual XalanNode*
    00118     getFirstChild() const;
    00119
    00125     virtual XalanNode*
    00126     getLastChild() const;
    00127
    00133     virtual XalanNode*
    00134     getPreviousSibling() const;
    00135
    00141     virtual XalanNode*
    00142     getNextSibling() const;
    00143
    00148     virtual const XalanNamedNodeMap*
    00149     getAttributes() const;
    00150
    00160     virtual XalanDocument*
    00161     getOwnerDocument() const;
    00162
    00164
    00166
    00185 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00186     virtual XalanNode*
    00187 #else
    00188     virtual XercesTextBridge*
    00189 #endif
    00190     cloneNode(bool deep) const;
    00191
    00193
    00195
    00212     virtual XalanNode*
    00213     insertBefore(
    00214             XalanNode*  newChild,
    00215             XalanNode*  refChild);
    00216
    00230     virtual XalanNode*
    00231     replaceChild(
    00232             XalanNode*  newChild,
    00233             XalanNode*  oldChild);
    00234
    00242     virtual XalanNode*
    00243     removeChild(XalanNode*  oldChild);
    00244
    00256     virtual XalanNode*
    00257     appendChild(XalanNode*  newChild);
    00258
    00260
    00262
    00270     virtual bool
    00271     hasChildNodes() const;
    00272
    00273
    00275
    00277
    00278
    00292     virtual void
    00293     setNodeValue(const XalanDOMString&  nodeValue);
    00294
    00296
    00298
    00315     virtual void
    00316     normalize();
    00317
    00331     virtual bool
    00332     isSupported(
    00333             const XalanDOMString&   feature,
    00334             const XalanDOMString&   version) const;
    00335
    00349     virtual const XalanDOMString&
    00350     getNamespaceURI() const;
    00351
    00356     virtual const XalanDOMString&
    00357     getPrefix() const;
    00358
    00366     virtual const XalanDOMString&
    00367     getLocalName() const;
    00368
    00398     virtual void
    00399     setPrefix(const XalanDOMString&     prefix);
    00400
    00401     virtual bool
    00402     isIndexed() const;
    00403
    00404     virtual IndexType
    00405     getIndex() const;
    00406
    00408
    00409     // These interfaces are inherited from XalanText...
    00410
    00413
    00429     virtual const XalanDOMString&
    00430     getData() const;
    00431
    00439     virtual unsigned int
    00440     getLength() const;
    00441
    00457     virtual XalanDOMString
    00458     substringData(
    00459             unsigned int    offset,
    00460             unsigned int    count) const;
    00461
    00463
    00465
    00474     virtual void
    00475     appendData(const XalanDOMString&    arg);
    00476
    00487     virtual void
    00488     insertData(
    00489             unsigned int            offset,
    00490             const XalanDOMString&   arg);
    00491
    00508     virtual void
    00509     deleteData(
    00510             unsigned int    offset,
    00511             unsigned int    count);
    00512
    00531     virtual void
    00532     replaceData(
    00533             unsigned int            offset,
    00534             unsigned int            count,
    00535             const XalanDOMString&   arg);
    00536
    00538
    00540
    00542
    00560     virtual XalanText*
    00561     splitText(unsigned int  offset);
    00562
    00564
    00565     virtual bool
    00566     isIgnorableWhitespace() const;
    00567
    00573     DOM_TextType
    00574     getXercesNode() const
    00575     {
    00576         return m_xercesNode;
    00577     }
    00578
    00579 private:
    00580
    00581     // Not implemented...
    00582     XercesTextBridge(const XercesTextBridge&    theSource);
    00583
    00584     XercesTextBridge&
    00585     operator=(const XercesTextBridge&   theSource);
    00586
    00587     bool
    00588     operator==(const XercesTextBridge&  theRHS) const;
    00589
    00590     // Data members...
    00591     XercesDOM_TextHack              m_xercesNode;
    00592
    00593     const XercesBridgeNavigator&    m_navigator;
    00594 };
    00595
    00596
    00597
    00598 XALAN_CPP_NAMESPACE_END
    00599
    00600
    00601
    00602 #endif  // !defined(XERCESTEXTBRIDGE_HEADER_GUARD_1357924680)

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.10 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.