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(XERCESCOMMENTWRAPPER_HEADER_GUARD_1357924680) 00019 #define XERCESCOMMENTWRAPPER_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp> 00024 00025 #include <xalanc/Include/XalanMemMgrAutoPtr.hpp> 00026 00027 #include <xalanc/XalanDOM/XalanComment.hpp> 00028 #include <xalanc/XercesParserLiaison/XercesWrapperTypes.hpp> 00029 00030 00031 00032 XALAN_CPP_NAMESPACE_BEGIN 00033 00034 00035 00036 class XercesWrapperNavigator; 00037 00038 00039 00040 class XALAN_XERCESPARSERLIAISON_EXPORT XercesCommentWrapper : public XalanComment 00041 { 00042 public: 00043 00044 XercesCommentWrapper( 00045 const DOMCommentType* theXercesComment, 00046 const XercesWrapperNavigator& theNavigator); 00047 00048 static XercesCommentWrapper* 00049 create( MemoryManager& theManager, 00050 const DOMCommentType* theXercesComment, 00051 const XercesWrapperNavigator& theNavigator); 00052 00053 virtual 00054 ~XercesCommentWrapper(); 00055 00056 00057 // These interfaces are inherited from XalanComment... 00058 00059 virtual const XalanDOMString& 00060 getNodeName() const; 00061 00062 virtual const XalanDOMString& 00063 getNodeValue() const; 00064 00065 virtual NodeType 00066 getNodeType() const; 00067 00068 virtual XalanNode* 00069 getParentNode() const; 00070 00071 virtual const XalanNodeList* 00072 getChildNodes() const; 00073 00074 virtual XalanNode* 00075 getFirstChild() const; 00076 00077 virtual XalanNode* 00078 getLastChild() const; 00079 00080 virtual XalanNode* 00081 getPreviousSibling() const; 00082 00083 virtual XalanNode* 00084 getNextSibling() const; 00085 00086 virtual const XalanNamedNodeMap* 00087 getAttributes() const; 00088 00089 virtual XalanDocument* 00090 getOwnerDocument() const; 00091 00092 virtual const XalanDOMString& 00093 getNamespaceURI() const; 00094 00095 virtual const XalanDOMString& 00096 getPrefix() const; 00097 00098 virtual const XalanDOMString& 00099 getLocalName() const; 00100 00101 virtual bool 00102 isIndexed() const; 00103 00104 virtual IndexType 00105 getIndex() const; 00106 00107 virtual const XalanDOMString& 00108 getData() const; 00109 00110 00111 // These interfaces are new to XercesCommentWrapper... 00112 00113 /** 00114 * Get the Xerces node this instance represent. 00115 * 00116 * @return The Xerces node 00117 */ 00118 const DOMCommentType* 00119 getXercesNode() const 00120 { 00121 return m_xercesNode; 00122 } 00123 00124 //@} 00125 00126 private: 00127 00128 // Not implemented... 00129 XercesCommentWrapper(const XercesCommentWrapper& theSource); 00130 00131 XercesCommentWrapper& 00132 operator=(const XercesCommentWrapper& theSource); 00133 00134 bool 00135 operator==(const XercesCommentWrapper& theRHS) const; 00136 00137 // Data members... 00138 const DOMCommentType* const m_xercesNode; 00139 00140 const XercesWrapperNavigator& m_navigator; 00141 }; 00142 00143 00144 00145 XALAN_CPP_NAMESPACE_END 00146 00147 00148 #endif // !defined(XERCESCOMMENTWRAPPER_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 |
|