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