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(XALANSOURCETREEPROCESSINGINSTRUCTION_HEADER_GUARD_1357924680) 00019 #define XALANSOURCETREEPROCESSINGINSTRUCTION_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XalanSourceTree/XalanSourceTreeDefinitions.hpp> 00024 00025 00026 00027 #include <xalanc/XalanDOM/XalanProcessingInstruction.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 XalanSourceTreeDocument; 00041 class XalanSourceTreeDocumentFragment; 00042 class XalanSourceTreeElement; 00043 class XalanSourceTreeText; 00044 00045 00046 00047 class XALAN_XALANSOURCETREE_EXPORT XalanSourceTreeProcessingInstruction : public XalanProcessingInstruction 00048 { 00049 public: 00050 00051 /** 00052 * Create an instance. 00053 * 00054 * @param theTarget The target for the processing instruction. 00055 * @param theData The data for the node 00056 * @param theOwnerDocument The document that owns the instance. 00057 * @param theParentNode The parent node, if any. 00058 * @param thePreviousSibling The next sibling, if any. 00059 * @param theNextSibling The next sibling, if any. 00060 * @param theIndex The document-order index of the node. 00061 * 00062 * @return pointer to the instance 00063 */ 00064 XalanSourceTreeProcessingInstruction( 00065 const XalanDOMString& theTarget, 00066 const XalanDOMString& theData, 00067 XalanSourceTreeDocument* theOwnerDocument, 00068 XalanNode* theParentNode = 0, 00069 XalanNode* thePreviousSibling = 0, 00070 XalanNode* theNextSibling = 0, 00071 IndexType theIndex = 0); 00072 00073 virtual 00074 ~XalanSourceTreeProcessingInstruction(); 00075 00076 00077 // These interfaces are inherited from XalanProcessingInstruction... 00078 00079 virtual const XalanDOMString& 00080 getNodeName() const; 00081 00082 virtual const XalanDOMString& 00083 getNodeValue() const; 00084 00085 virtual NodeType 00086 getNodeType() const; 00087 00088 virtual XalanNode* 00089 getParentNode() const; 00090 00091 virtual const XalanNodeList* 00092 getChildNodes() const; 00093 00094 virtual XalanNode* 00095 getFirstChild() const; 00096 00097 virtual XalanNode* 00098 getLastChild() const; 00099 00100 virtual XalanNode* 00101 getPreviousSibling() const; 00102 00103 virtual XalanNode* 00104 getNextSibling() const; 00105 00106 virtual const XalanNamedNodeMap* 00107 getAttributes() const; 00108 00109 virtual XalanDocument* 00110 getOwnerDocument() const; 00111 00112 virtual const XalanDOMString& 00113 getNamespaceURI() const; 00114 00115 virtual const XalanDOMString& 00116 getPrefix() const; 00117 00118 virtual const XalanDOMString& 00119 getLocalName() const; 00120 00121 virtual bool 00122 isIndexed() const; 00123 00124 virtual IndexType 00125 getIndex() const; 00126 00127 virtual const XalanDOMString& 00128 getTarget() const; 00129 00130 virtual const XalanDOMString& 00131 getData() const; 00132 00133 00134 // public interfaces not inherited from XalanProcessingInstruction... 00135 00136 void 00137 setParent(XalanSourceTreeElement* theParent); 00138 00139 void 00140 setParent(XalanSourceTreeDocumentFragment* theParent); 00141 00142 void 00143 setPreviousSibling(XalanSourceTreeComment* thePreviousSibling); 00144 00145 void 00146 setPreviousSibling(XalanSourceTreeElement* thePreviousSibling); 00147 00148 void 00149 setPreviousSibling(XalanSourceTreeProcessingInstruction* thePreviousSibling); 00150 00151 void 00152 setPreviousSibling(XalanSourceTreeText* thePreviousSibling); 00153 00154 void 00155 appendSiblingNode(XalanSourceTreeComment* theSibling); 00156 00157 void 00158 appendSiblingNode(XalanSourceTreeElement* theSibling); 00159 00160 void 00161 appendSiblingNode(XalanSourceTreeProcessingInstruction* theSibling); 00162 00163 void 00164 appendSiblingNode(XalanSourceTreeText* theSibling); 00165 00166 void 00167 setIndex(IndexType theIndex) 00168 { 00169 m_index = theIndex; 00170 } 00171 00172 private: 00173 00174 // Not implemented... 00175 XalanSourceTreeProcessingInstruction( 00176 const XalanSourceTreeProcessingInstruction& theSource); 00177 00178 XalanSourceTreeProcessingInstruction& 00179 operator=(const XalanSourceTreeProcessingInstruction& theSource); 00180 00181 bool 00182 operator==(const XalanSourceTreeProcessingInstruction& theRHS) const; 00183 00184 00185 // Data members... 00186 const XalanDOMString& m_target; 00187 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 00201 00202 00203 XALAN_CPP_NAMESPACE_END 00204 00205 00206 00207 #endif // !defined(XALANSOURCETREEPROCESSINGINSTRUCTION_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 |
|