Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

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

XalanSourceTreeDocumentFragment.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(XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680) 00017 #define XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680 00018 00019 00020 00021 #include <xalanc/XalanSourceTree/XalanSourceTreeDefinitions.hpp> 00022 00023 00024 00025 #include <xalanc/XalanDOM/XalanDocumentFragment.hpp> 00026 00027 00028 00029 #if !defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00030 #include <xalanc/XalanSourceTree/XalanSourceTreeDocument.hpp> 00031 #endif 00032 00033 00034 00035 XALAN_CPP_NAMESPACE_BEGIN 00036 00037 00038 00039 class XalanSourceTreeComment; 00040 class XalanSourceTreeDocument; 00041 class XalanSourceTreeElement; 00042 class XalanSourceTreeProcessingInstruction; 00043 class XalanSourceTreeText; 00044 00045 00046 00047 class XALAN_XALANSOURCETREE_EXPORT XalanSourceTreeDocumentFragment : public XalanDocumentFragment 00048 { 00049 public: 00050 00051 XalanSourceTreeDocumentFragment(XalanSourceTreeDocument& theOwnerDocument); 00052 00053 XalanSourceTreeDocumentFragment( 00054 const XalanSourceTreeDocumentFragment& theSource, 00055 bool deep = false); 00056 00057 virtual 00058 ~XalanSourceTreeDocumentFragment(); 00059 00060 // These interfaces are inherited from XalanNode... 00061 00062 virtual const XalanDOMString& 00063 getNodeName() const; 00064 00065 virtual const XalanDOMString& 00066 getNodeValue() const; 00067 00068 virtual NodeType 00069 getNodeType() const; 00070 00071 virtual XalanNode* 00072 getParentNode() const; 00073 00074 virtual const XalanNodeList* 00075 getChildNodes() const; 00076 00077 virtual XalanNode* 00078 getFirstChild() const; 00079 00080 virtual XalanNode* 00081 getLastChild() const; 00082 00083 virtual XalanNode* 00084 getPreviousSibling() const; 00085 00086 virtual XalanNode* 00087 getNextSibling() const; 00088 00089 virtual const XalanNamedNodeMap* 00090 getAttributes() const; 00091 00092 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00093 virtual XalanDocument* 00094 #else 00095 virtual XalanSourceTreeDocument* 00096 #endif 00097 getOwnerDocument() const; 00098 00099 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00100 virtual XalanNode* 00101 #else 00102 virtual XalanSourceTreeDocumentFragment* 00103 #endif 00104 cloneNode(bool deep) const; 00105 00106 virtual XalanNode* 00107 insertBefore( 00108 XalanNode* newChild, 00109 XalanNode* refChild); 00110 00111 virtual XalanNode* 00112 replaceChild( 00113 XalanNode* newChild, 00114 XalanNode* oldChild); 00115 00116 virtual XalanNode* 00117 removeChild(XalanNode* oldChild); 00118 00119 virtual XalanNode* 00120 appendChild(XalanNode* newChild); 00121 00122 virtual bool 00123 hasChildNodes() const; 00124 00125 virtual void 00126 setNodeValue(const XalanDOMString& nodeValue); 00127 00128 virtual void 00129 normalize(); 00130 00131 virtual bool 00132 isSupported( 00133 const XalanDOMString& feature, 00134 const XalanDOMString& version) const; 00135 00136 virtual const XalanDOMString& 00137 getNamespaceURI() const; 00138 00139 virtual const XalanDOMString& 00140 getPrefix() const; 00141 00142 virtual const XalanDOMString& 00143 getLocalName() const; 00144 00145 virtual void 00146 setPrefix(const XalanDOMString& prefix); 00147 00148 virtual bool 00149 isIndexed() const; 00150 00151 virtual IndexType 00152 getIndex() const; 00153 00154 // These interfaces are new... 00155 00156 void 00157 appendChildNode(XalanSourceTreeComment* theChild); 00158 00159 void 00160 appendChildNode(XalanSourceTreeElement* theChild); 00161 00162 void 00163 appendChildNode(XalanSourceTreeProcessingInstruction* theChild); 00164 00165 void 00166 appendChildNode(XalanSourceTreeText* theChild); 00167 00168 void 00169 clearChildren(); 00170 00171 XalanSourceTreeDocumentFragment* 00172 clone(bool deep) const 00173 { 00174 return new XalanSourceTreeDocumentFragment(*this, deep); 00175 } 00176 00177 protected: 00178 00179 XalanSourceTreeDocumentFragment& 00180 operator=(const XalanSourceTreeDocumentFragment& theSource); 00181 00182 bool 00183 operator==(const XalanSourceTreeDocumentFragment& theRHS) const; 00184 00185 private: 00186 00187 XalanSourceTreeDocument* const m_ownerDocument; 00188 00189 XalanNode* m_firstChild; 00190 }; 00191 00192 00193 00194 XALAN_CPP_NAMESPACE_END 00195 00196 00197 00198 #endif // !defined(XALANSOURCETREEDOCUMENTFRAGMENT_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.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.