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

# XercesTextWrapper.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(XERCESTEXTWRAPPER_HEADER_GUARD_1357924680)
    00017 #define XERCESTEXTWRAPPER_HEADER_GUARD_1357924680
    00018
    00019
    00020
    00021 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp>
    00022
    00023
    00024
    00025 #include <xalanc/XalanDOM/XalanText.hpp>
    00026
    00027
    00028
    00029 #include <xalanc/XercesParserLiaison/XercesWrapperTypes.hpp>
    00030
    00031
    00032
    00033 XALAN_CPP_NAMESPACE_BEGIN
    00034
    00035
    00036
    00037 class XercesWrapperNavigator;
    00038
    00039
    00040
    00041 class XALAN_XERCESPARSERLIAISON_EXPORT XercesTextWrapper : public XalanText
    00042 {
    00043 public:
    00044
    00045     XercesTextWrapper(
    00046             const DOMTextType*              theXercesText,
    00047             const XercesWrapperNavigator&   theNavigator);
    00048
    00049     virtual
    00050     ~XercesTextWrapper();
    00051
    00052
    00056     virtual const XalanDOMString&
    00057     getNodeName() const;
    00058
    00062     virtual const XalanDOMString&
    00063     getNodeValue() const;
    00064
    00068     virtual NodeType
    00069     getNodeType() const;
    00070
    00080     virtual XalanNode*
    00081     getParentNode() const;
    00082
    00096     virtual const XalanNodeList*
    00097     getChildNodes() const;
    00098
    00104     virtual XalanNode*
    00105     getFirstChild() const;
    00106
    00112     virtual XalanNode*
    00113     getLastChild() const;
    00114
    00120     virtual XalanNode*
    00121     getPreviousSibling() const;
    00122
    00128     virtual XalanNode*
    00129     getNextSibling() const;
    00130
    00135     virtual const XalanNamedNodeMap*
    00136     getAttributes() const;
    00137
    00147     virtual XalanDocument*
    00148     getOwnerDocument() const;
    00149
    00151
    00153
    00172 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00173     virtual XalanNode*
    00174 #else
    00175     virtual XercesTextWrapper*
    00176 #endif
    00177     cloneNode(bool deep) const;
    00178
    00180
    00182
    00199     virtual XalanNode*
    00200     insertBefore(
    00201             XalanNode*  newChild,
    00202             XalanNode*  refChild);
    00203
    00217     virtual XalanNode*
    00218     replaceChild(
    00219             XalanNode*  newChild,
    00220             XalanNode*  oldChild);
    00221
    00229     virtual XalanNode*
    00230     removeChild(XalanNode*  oldChild);
    00231
    00243     virtual XalanNode*
    00244     appendChild(XalanNode*  newChild);
    00245
    00247
    00249
    00257     virtual bool
    00258     hasChildNodes() const;
    00259
    00260
    00262
    00264
    00265
    00279     virtual void
    00280     setNodeValue(const XalanDOMString&  nodeValue);
    00281
    00283
    00285
    00302     virtual void
    00303     normalize();
    00304
    00318     virtual bool
    00319     isSupported(
    00320             const XalanDOMString&   feature,
    00321             const XalanDOMString&   version) const;
    00322
    00336     virtual const XalanDOMString&
    00337     getNamespaceURI() const;
    00338
    00343     virtual const XalanDOMString&
    00344     getPrefix() const;
    00345
    00353     virtual const XalanDOMString&
    00354     getLocalName() const;
    00355
    00385     virtual void
    00386     setPrefix(const XalanDOMString&     prefix);
    00387
    00388     virtual bool
    00389     isIndexed() const;
    00390
    00391     virtual IndexType
    00392     getIndex() const;
    00393
    00395
    00396     // These interfaces are inherited from XalanText...
    00397
    00400
    00416     virtual const XalanDOMString&
    00417     getData() const;
    00418
    00426     virtual unsigned int
    00427     getLength() const;
    00428
    00444     virtual XalanDOMString&
    00445     substringData(
    00446             unsigned int    offset,
    00447             unsigned int    count,
    00448             XalanDOMString& theResult) const;
    00449
    00451
    00453
    00462     virtual void
    00463     appendData(const XalanDOMString&    arg);
    00464
    00475     virtual void
    00476     insertData(
    00477             unsigned int            offset,
    00478             const XalanDOMString&   arg);
    00479
    00496     virtual void
    00497     deleteData(
    00498             unsigned int    offset,
    00499             unsigned int    count);
    00500
    00519     virtual void
    00520     replaceData(
    00521             unsigned int            offset,
    00522             unsigned int            count,
    00523             const XalanDOMString&   arg);
    00524
    00526
    00528
    00530
    00548     virtual XalanText*
    00549     splitText(unsigned int  offset);
    00550
    00552
    00553     virtual bool
    00554     isIgnorableWhitespace() const;
    00555
    00561     const DOMTextType*
    00562     getXercesNode() const
    00563     {
    00564         return m_xercesNode;
    00565     }
    00566
    00567 private:
    00568
    00569     // Not implemented...
    00570     XercesTextWrapper(const XercesTextWrapper&  theSource);
    00571
    00572     XercesTextWrapper&
    00573     operator=(const XercesTextWrapper&  theSource);
    00574
    00575     bool
    00576     operator==(const XercesTextWrapper& theRHS) const;
    00577
    00578     // Data members...
    00579     const DOMTextType* const        m_xercesNode;
    00580
    00581     const XercesWrapperNavigator&   m_navigator;
    00582 };
    00583
    00584
    00585
    00586 XALAN_CPP_NAMESPACE_END
    00587
    00588
    00589
    00590 #endif  // !defined(XERCESTEXTWRAPPER_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.