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(XALANATTR_HEADER_GUARD_1357924680) 00019 #define XALANATTR_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XalanDOM/XalanDOMDefinitions.hpp> 00024 #include <xalanc/XalanDOM/XalanNode.hpp> 00025 00026 00027 00028 XALAN_CPP_NAMESPACE_BEGIN 00029 00030 00031 00032 class XalanElement; 00033 00034 00035 00036 /* 00037 * Base class for the DOM Attr interface. 00038 */ 00039 00040 class XALAN_DOM_EXPORT XalanAttr : public XalanNode 00041 { 00042 public: 00043 00044 XalanAttr(); 00045 00046 virtual 00047 ~XalanAttr(); 00048 00049 00050 // These interfaces are inherited from XalanNode... 00051 virtual const XalanDOMString& 00052 getNodeName() const = 0; 00053 00054 virtual const XalanDOMString& 00055 getNodeValue() const = 0; 00056 00057 virtual NodeType 00058 getNodeType() const = 0; 00059 00060 virtual XalanNode* 00061 getParentNode() const = 0; 00062 00063 virtual const XalanNodeList* 00064 getChildNodes() const = 0; 00065 00066 virtual XalanNode* 00067 getFirstChild() const = 0; 00068 00069 virtual XalanNode* 00070 getLastChild() const = 0; 00071 00072 virtual XalanNode* 00073 getPreviousSibling() const = 0; 00074 00075 virtual XalanNode* 00076 getNextSibling() const = 0; 00077 00078 virtual const XalanNamedNodeMap* 00079 getAttributes() const = 0; 00080 00081 virtual XalanDocument* 00082 getOwnerDocument() const = 0; 00083 00084 virtual const XalanDOMString& 00085 getNamespaceURI() const = 0; 00086 00087 virtual const XalanDOMString& 00088 getPrefix() const = 0; 00089 00090 virtual const XalanDOMString& 00091 getLocalName() const = 0; 00092 00093 virtual bool 00094 isIndexed() const = 0; 00095 00096 virtual IndexType 00097 getIndex() const = 0; 00098 00099 // These interfaces are new to XalanAttr... 00100 00101 /** 00102 * Returns the name of this attribute. 00103 */ 00104 virtual const XalanDOMString& 00105 getName() const = 0; 00106 00107 /** 00108 * Returns the value of the attribute. 00109 * 00110 * The value of the attribute is returned as a string. 00111 */ 00112 virtual const XalanDOMString& 00113 getValue() const = 0; 00114 00115 /** 00116 * The XalanElement node this attribute is attached to. 00117 * If there is no such node, this returns a null pointer. 00118 */ 00119 virtual XalanElement* 00120 getOwnerElement() const = 0; 00121 00122 protected: 00123 00124 XalanAttr(const XalanAttr& theSource); 00125 00126 XalanAttr& 00127 operator=(const XalanAttr& theSource); 00128 00129 bool 00130 operator==(const XalanAttr& theRHS) const; 00131 00132 private: 00133 }; 00134 00135 00136 00137 XALAN_CPP_NAMESPACE_END 00138 00139 00140 00141 #endif // !defined(XALANATTR_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 |
|