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(XALANSOURCETREEATTR_HEADER_GUARD_1357924680) 00019 #define XALANSOURCETREEATTR_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XalanSourceTree/XalanSourceTreeDefinitions.hpp> 00024 00025 00026 00027 #include <xalanc/XalanDOM/XalanAttr.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 XalanSourceTreeElement; 00041 00042 00043 00044 /* 00045 * <meta name="usage" content="experimental"/> 00046 * 00047 * Base class for the Xalan source tree Attr interface. 00048 * 00049 * This class is experimental and subject to change!! 00050 */ 00051 00052 class XALAN_XALANSOURCETREE_EXPORT XalanSourceTreeAttr : public XalanAttr 00053 { 00054 public: 00055 00056 /** 00057 * Constructor. 00058 * 00059 * @param theName The name of the attribute 00060 * @param theValue The value of the attribute 00061 * @param theOwnerDocument The document that owns the instance 00062 * @param theOwnerElement The element that owns the instance 00063 * @param theIndex The document-order index of the node. 00064 */ 00065 XalanSourceTreeAttr( 00066 const XalanDOMString& theName, 00067 const XalanDOMString& theValue, 00068 XalanSourceTreeElement* theOwnerElement = 0, 00069 IndexType theIndex = 0); 00070 00071 virtual 00072 ~XalanSourceTreeAttr(); 00073 00074 00075 // These interfaces are inherited from XalanNode... 00076 virtual const XalanDOMString& 00077 getNodeName() const; 00078 00079 virtual const XalanDOMString& 00080 getNodeValue() const; 00081 00082 virtual NodeType 00083 getNodeType() const; 00084 00085 virtual XalanNode* 00086 getParentNode() const; 00087 00088 virtual const XalanNodeList* 00089 getChildNodes() const; 00090 00091 virtual XalanNode* 00092 getFirstChild() const; 00093 00094 virtual XalanNode* 00095 getLastChild() const; 00096 00097 virtual XalanNode* 00098 getPreviousSibling() const; 00099 00100 virtual XalanNode* 00101 getNextSibling() const; 00102 00103 virtual const XalanNamedNodeMap* 00104 getAttributes() const; 00105 00106 virtual XalanDocument* 00107 getOwnerDocument() const; 00108 00109 virtual const XalanDOMString& 00110 getNamespaceURI() const; 00111 00112 virtual const XalanDOMString& 00113 getPrefix() const; 00114 00115 virtual const XalanDOMString& 00116 getLocalName() const; 00117 00118 virtual bool 00119 isIndexed() const; 00120 00121 virtual IndexType 00122 getIndex() const; 00123 00124 // These interfaces are inherited from XalanAttr... 00125 virtual const XalanDOMString& 00126 getName() const; 00127 00128 virtual bool 00129 getSpecified() const; 00130 00131 virtual const XalanDOMString& 00132 getValue() const; 00133 00134 virtual XalanElement* 00135 getOwnerElement() const; 00136 00137 // public interfaces not inherited from XalanAttr... 00138 00139 void 00140 setOwnerElement(XalanSourceTreeElement* theElement) 00141 { 00142 m_ownerElement = theElement; 00143 } 00144 00145 void 00146 setIndex(IndexType theIndex) 00147 { 00148 m_index = theIndex; 00149 } 00150 00151 private: 00152 00153 // Not defined... 00154 XalanSourceTreeAttr(const XalanSourceTreeAttr& theSource); 00155 00156 XalanSourceTreeAttr& 00157 operator=(const XalanSourceTreeAttr& theSource); 00158 00159 bool 00160 operator==(const XalanSourceTreeAttr& theRHS) const; 00161 00162 00163 // Data members... 00164 const XalanDOMString& m_name; 00165 00166 const XalanDOMString& m_value; 00167 00168 XalanSourceTreeElement* m_ownerElement; 00169 00170 IndexType m_index; 00171 }; 00172 00173 00174 00175 XALAN_CPP_NAMESPACE_END 00176 00177 00178 00179 #endif // !defined(XALANSOURCETREEATTR_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 |
|