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(XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680) 00019 #define XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XalanSourceTree/XalanSourceTreeDefinitions.hpp> 00024 00025 00026 #include <xalanc/Include/XalanMemMgrAutoPtr.hpp> 00027 00028 00029 #include <xalanc/XalanDOM/XalanDocumentFragment.hpp> 00030 00031 00032 00033 #if !defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00034 #include <xalanc/XalanSourceTree/XalanSourceTreeDocument.hpp> 00035 #endif 00036 00037 00038 00039 XALAN_CPP_NAMESPACE_BEGIN 00040 00041 00042 00043 class XalanSourceTreeComment; 00044 class XalanSourceTreeDocument; 00045 class XalanSourceTreeElement; 00046 class XalanSourceTreeProcessingInstruction; 00047 class XalanSourceTreeText; 00048 00049 00050 00051 class XALAN_XALANSOURCETREE_EXPORT XalanSourceTreeDocumentFragment : public XalanDocumentFragment 00052 { 00053 public: 00054 00055 XalanSourceTreeDocumentFragment(MemoryManager& theManager, 00056 XalanSourceTreeDocument& theOwnerDocument); 00057 00058 /* 00059 XalanSourceTreeDocumentFragment( 00060 MemoryManager& theManager, 00061 const XalanSourceTreeDocumentFragment& theSource, 00062 bool deep = false); 00063 */ 00064 virtual 00065 ~XalanSourceTreeDocumentFragment(); 00066 00067 // These interfaces are inherited from XalanNode... 00068 00069 virtual const XalanDOMString& 00070 getNodeName() const; 00071 00072 virtual const XalanDOMString& 00073 getNodeValue() const; 00074 00075 virtual NodeType 00076 getNodeType() const; 00077 00078 virtual XalanNode* 00079 getParentNode() const; 00080 00081 virtual const XalanNodeList* 00082 getChildNodes() const; 00083 00084 virtual XalanNode* 00085 getFirstChild() const; 00086 00087 virtual XalanNode* 00088 getLastChild() const; 00089 00090 virtual XalanNode* 00091 getPreviousSibling() const; 00092 00093 virtual XalanNode* 00094 getNextSibling() const; 00095 00096 virtual const XalanNamedNodeMap* 00097 getAttributes() const; 00098 00099 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00100 virtual XalanDocument* 00101 #else 00102 virtual XalanSourceTreeDocument* 00103 #endif 00104 getOwnerDocument() const; 00105 00106 virtual const XalanDOMString& 00107 getNamespaceURI() const; 00108 00109 virtual const XalanDOMString& 00110 getPrefix() const; 00111 00112 virtual const XalanDOMString& 00113 getLocalName() const; 00114 00115 virtual bool 00116 isIndexed() const; 00117 00118 virtual IndexType 00119 getIndex() const; 00120 00121 // These interfaces are new... 00122 00123 void 00124 appendChildNode(XalanSourceTreeComment* theChild); 00125 00126 void 00127 appendChildNode(XalanSourceTreeElement* theChild); 00128 00129 void 00130 appendChildNode(XalanSourceTreeProcessingInstruction* theChild); 00131 00132 void 00133 appendChildNode(XalanSourceTreeText* theChild); 00134 00135 void 00136 clearChildren(); 00137 00138 protected: 00139 00140 XalanSourceTreeDocumentFragment& 00141 operator=(const XalanSourceTreeDocumentFragment& theSource); 00142 00143 bool 00144 operator==(const XalanSourceTreeDocumentFragment& theRHS) const; 00145 00146 private: 00147 MemoryManager& m_manager; 00148 00149 XalanSourceTreeDocument* const m_ownerDocument; 00150 00151 XalanNode* m_firstChild; 00152 }; 00153 00154 00155 00156 XALAN_CPP_NAMESPACE_END 00157 00158 00159 00160 #endif // !defined(XALANSOURCETREEDOCUMENTFRAGMENT_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 |
|