## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# XercesCommentBridge.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(XERCESCOMMENTBRIDGE_HEADER_GUARD_1357924680)
    00017 #define XERCESCOMMENTBRIDGE_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_Comment.hpp>
    00027 #else
    00028 #include <xercesc/dom/DOM_Comment.hpp>
    00029 #endif
    00030
    00031
    00032
    00033 #include <xalanc/XalanDOM/XalanComment.hpp>
    00034
    00035
    00036
    00037 #include <xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp>
    00038
    00039
    00040
    00041 XALAN_CPP_NAMESPACE_BEGIN
    00042
    00043
    00044
    00045 class XercesBridgeNavigator;
    00046
    00047
    00053 class XALAN_XERCESPARSERLIAISON_EXPORT XercesCommentBridge : public XalanComment
    00054 {
    00055 public:
    00056
    00057     XercesCommentBridge(
    00058             const DOM_CommentType&          theXercesComment,
    00059             const XercesBridgeNavigator&    theNavigator);
    00060
    00061     virtual
    00062     ~XercesCommentBridge();
    00063
    00064
    00068     virtual const XalanDOMString&
    00069     getNodeName() const;
    00070
    00074     virtual const XalanDOMString&
    00075     getNodeValue() const;
    00076
    00080     virtual NodeType
    00081     getNodeType() const;
    00082
    00092     virtual XalanNode*
    00093     getParentNode() const;
    00094
    00108     virtual const XalanNodeList*
    00109     getChildNodes() const;
    00110
    00116     virtual XalanNode*
    00117     getFirstChild() const;
    00118
    00124     virtual XalanNode*
    00125     getLastChild() const;
    00126
    00132     virtual XalanNode*
    00133     getPreviousSibling() const;
    00134
    00140     virtual XalanNode*
    00141     getNextSibling() const;
    00142
    00147     virtual const XalanNamedNodeMap*
    00148     getAttributes() const;
    00149
    00159     virtual XalanDocument*
    00160     getOwnerDocument() const;
    00161
    00163
    00165
    00184 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00185     virtual XalanNode*
    00186 #else
    00187     virtual XercesCommentBridge*
    00188 #endif
    00189     cloneNode(bool deep) const;
    00190
    00192
    00194
    00211     virtual XalanNode*
    00212     insertBefore(
    00213             XalanNode*  newChild,
    00214             XalanNode*  refChild);
    00215
    00229     virtual XalanNode*
    00230     replaceChild(
    00231             XalanNode*  newChild,
    00232             XalanNode*  oldChild);
    00233
    00241     virtual XalanNode*
    00242     removeChild(XalanNode*  oldChild);
    00243
    00255     virtual XalanNode*
    00256     appendChild(XalanNode*  newChild);
    00257
    00259
    00261
    00269     virtual bool
    00270     hasChildNodes() const;
    00271
    00272
    00274
    00276
    00290     virtual void
    00291     setNodeValue(const XalanDOMString&      nodeValue);
    00292
    00294
    00296
    00313     virtual void
    00314     normalize();
    00315
    00329     virtual bool
    00330     isSupported(
    00331             const XalanDOMString&   feature,
    00332             const XalanDOMString&   version) const;
    00333
    00347     virtual const XalanDOMString&
    00348     getNamespaceURI() const;
    00349
    00354     virtual const XalanDOMString&
    00355     getPrefix() const;
    00356
    00364     virtual const XalanDOMString&
    00365     getLocalName() const;
    00366
    00396     virtual void
    00397     setPrefix(const XalanDOMString& prefix);
    00398
    00399     virtual bool
    00400     isIndexed() const;
    00401
    00402     virtual IndexType
    00403     getIndex() const;
    00404
    00406
    00407     // These interfaces are inherited from XalanCDATASection...
    00408
    00427     virtual const XalanDOMString&
    00428     getData() const;
    00429
    00437     virtual unsigned int
    00438     getLength() const;
    00439
    00455     virtual XalanDOMString
    00456     substringData(
    00457             unsigned int    offset,
    00458             unsigned int    count) const;
    00459
    00461
    00472     virtual void
    00473     appendData(const XalanDOMString&    arg);
    00474
    00485     virtual void
    00486     insertData(
    00487             unsigned int            offset,
    00488             const  XalanDOMString&  arg);
    00489
    00506     virtual void
    00507     deleteData(
    00508             unsigned int    offset,
    00509             unsigned int    count);
    00510
    00529     virtual void
    00530     replaceData(
    00531             unsigned int            offset,
    00532             unsigned int            count,
    00533             const XalanDOMString&   arg);
    00534
    00540     DOM_CommentType
    00541     getXercesNode() const
    00542     {
    00543         return m_xercesNode;
    00544     }
    00545
    00547
    00548 private:
    00549
    00550     // Not implemented...
    00551     XercesCommentBridge(const XercesCommentBridge&  theSource);
    00552
    00553     XercesCommentBridge&
    00554     operator=(const XercesCommentBridge&    theSource);
    00555
    00556     bool
    00557     operator==(const XercesCommentBridge&   theRHS) const;
    00558
    00559     // Data members...
    00560     DOM_CommentType                 m_xercesNode;
    00561
    00562     const XercesBridgeNavigator&    m_navigator;
    00563 };
    00564
    00565
    00566
    00567 XALAN_CPP_NAMESPACE_END
    00568
    00569
    00570
    00571 #endif  // !defined(XERCESCOMMENTBRIDGE_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.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.