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(XALANSOURCETREECOMMENT_HEADER_GUARD_1357924680) 00019 #define XALANSOURCETREECOMMENT_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XalanSourceTree/XalanSourceTreeDefinitions.hpp> 00024 00025 00026 00027 #include <xalanc/XalanDOM/XalanComment.hpp> 00028 00029 00030 00031 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00032 00033 00034 00035 XALAN_CPP_NAMESPACE_BEGIN 00036 00037 00038 00039 class XalanSourceTreeDocument; 00040 class XalanSourceTreeDocumentFragment; 00041 class XalanSourceTreeElement; 00042 class XalanSourceTreeProcessingInstruction; 00043 class XalanSourceTreeText; 00044 00045 00046 00047 class XALAN_XALANSOURCETREE_EXPORT XalanSourceTreeComment : public XalanComment 00048 { 00049 public: 00050 00051 /** 00052 * Perform static initialization. See class XalanSourceTreeInit. 00053 */ 00054 static void 00055 initialize(MemoryManager& theManager); 00056 00057 /** 00058 * Perform static shut down. See class XalanSourceTreeInit. 00059 */ 00060 static void 00061 terminate(); 00062 00063 00064 /** 00065 * Constructor. 00066 * 00067 * @param theData The text data of the node. 00068 * @param theOwnerDocument The owner document of the comment node. 00069 * @param theParentNode The parent node, if any. 00070 * @param thePreviousSibling The previous sibling, if any. 00071 * @param theNextSibling The next sibling, if any. 00072 * @param theIndex The document-order index of the node. 00073 */ 00074 XalanSourceTreeComment( 00075 const XalanDOMString& theData, 00076 XalanSourceTreeDocument* theOwnerDocument, 00077 XalanNode* theParentNode = 0, 00078 XalanNode* thePreviousSibling = 0, 00079 XalanNode* theNextSibling = 0, 00080 IndexType theIndex = 0); 00081 00082 virtual 00083 ~XalanSourceTreeComment(); 00084 00085 // These interfaces are inherited from XalanComment 00086 virtual const XalanDOMString& 00087 getNodeName() const; 00088 00089 virtual const XalanDOMString& 00090 getNodeValue() const; 00091 00092 virtual NodeType 00093 getNodeType() const; 00094 00095 virtual XalanNode* 00096 getParentNode() const; 00097 00098 virtual const XalanNodeList* 00099 getChildNodes() const; 00100 00101 virtual XalanNode* 00102 getFirstChild() const; 00103 00104 virtual XalanNode* 00105 getLastChild() const; 00106 00107 virtual XalanNode* 00108 getPreviousSibling() const; 00109 00110 virtual XalanNode* 00111 getNextSibling() const; 00112 00113 virtual const XalanNamedNodeMap* 00114 getAttributes() const; 00115 00116 virtual XalanDocument* 00117 getOwnerDocument() const; 00118 00119 virtual const XalanDOMString& 00120 getNamespaceURI() const; 00121 00122 virtual const XalanDOMString& 00123 getPrefix() const; 00124 00125 virtual const XalanDOMString& 00126 getLocalName() const; 00127 00128 virtual bool 00129 isIndexed() const; 00130 00131 virtual IndexType 00132 getIndex() const; 00133 00134 virtual const XalanDOMString& 00135 getData() const; 00136 00137 // public interfaces not inherited from XalanComment... 00138 00139 void 00140 setParent(XalanSourceTreeElement* theParent); 00141 00142 void 00143 setParent(XalanSourceTreeDocumentFragment* theParent); 00144 00145 void 00146 setPreviousSibling(XalanSourceTreeComment* thePreviousSibling); 00147 00148 void 00149 setPreviousSibling(XalanSourceTreeElement* thePreviousSibling); 00150 00151 void 00152 setPreviousSibling(XalanSourceTreeProcessingInstruction* thePreviousSibling); 00153 00154 void 00155 setPreviousSibling(XalanSourceTreeText* thePreviousSibling); 00156 00157 void 00158 appendSiblingNode(XalanSourceTreeComment* theSibling); 00159 00160 void 00161 appendSiblingNode(XalanSourceTreeElement* theSibling); 00162 00163 void 00164 appendSiblingNode(XalanSourceTreeProcessingInstruction* theSibling); 00165 00166 void 00167 appendSiblingNode(XalanSourceTreeText* theSibling); 00168 00169 void 00170 setIndex(IndexType theIndex) 00171 { 00172 m_index = theIndex; 00173 } 00174 00175 private: 00176 00177 // Not implemented... 00178 XalanSourceTreeComment(const XalanSourceTreeComment& theSource); 00179 00180 XalanSourceTreeComment& 00181 operator=(const XalanSourceTreeComment& theSource); 00182 00183 bool 00184 operator==(const XalanSourceTreeComment& theRHS) const; 00185 00186 00187 // Data members... 00188 const XalanDOMString& m_data; 00189 00190 XalanSourceTreeDocument* m_ownerDocument; 00191 00192 XalanNode* m_parentNode; 00193 00194 XalanNode* m_previousSibling; 00195 00196 XalanNode* m_nextSibling; 00197 00198 IndexType m_index; 00199 00200 static const XalanDOMString& s_nameString; 00201 }; 00202 00203 00204 00205 XALAN_CPP_NAMESPACE_END 00206 00207 00208 00209 #endif // !defined(XALANSOURCETREECOMMENT_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 |
|