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(XALANSOURCETREEELEMENTA_HEADER_GUARD_1357924680) 00019 #define XALANSOURCETREEELEMENTA_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XalanSourceTree/XalanSourceTreeDefinitions.hpp> 00024 00025 00026 00027 #include <xalanc/XalanDOM/XalanNamedNodeMap.hpp> 00028 00029 00030 00031 #include <xalanc/XalanSourceTree/XalanSourceTreeElement.hpp> 00032 00033 00034 00035 XALAN_CPP_NAMESPACE_BEGIN 00036 00037 00038 00039 class XALAN_XALANSOURCETREE_EXPORT XalanSourceTreeElementA : public XalanSourceTreeElement, private XalanNamedNodeMap 00040 { 00041 public: 00042 00043 /** 00044 * Constructor. 00045 * 00046 * @param theTagName The tag name of the element 00047 * @param theOwnerDocument The document that owns the instance 00048 * @param theAttributes An array of pointers to the attribute instances for the element 00049 * @param theAttributeCount The number of attributes. 00050 * @param theParentNode The parent node, if any. 00051 * @param thePreviousSibling The previous sibling, if any. 00052 * @param theNextSibling The next sibling, if any. 00053 * @param theIndex The document-order index of the node. 00054 */ 00055 XalanSourceTreeElementA( 00056 MemoryManager& theManager, 00057 const XalanDOMString& theTagName, 00058 XalanSourceTreeDocument* theOwnerDocument, 00059 XalanSourceTreeAttr** theAttributes, 00060 XalanSize_t theAttributeCount, 00061 XalanNode* theParentNode = 0, 00062 XalanNode* thePreviousSibling = 0, 00063 XalanNode* theNextSibling = 0, 00064 IndexType theIndex = 0); 00065 00066 virtual 00067 ~XalanSourceTreeElementA(); 00068 00069 00070 virtual const XalanNamedNodeMap* 00071 getAttributes() const; 00072 00073 virtual const XalanDOMString& 00074 getNamespaceURI() const; 00075 00076 virtual const XalanDOMString& 00077 getPrefix() const; 00078 00079 virtual const XalanDOMString& 00080 getLocalName() const; 00081 00082 00083 // public interfaces not inherited from XalanElement... 00084 00085 XalanSize_t 00086 getAttributeCount() const 00087 { 00088 return m_attributeCount; 00089 } 00090 00091 XalanSourceTreeAttr* 00092 getAttributeByIndex(XalanSize_t index) const 00093 { 00094 return index < m_attributeCount ? m_attributes[index] : 0; 00095 } 00096 00097 private: 00098 00099 // These are from XalanNamedNodeMap... 00100 00101 virtual XalanNode* 00102 item(XalanSize_t index) const; 00103 00104 virtual XalanNode* 00105 getNamedItem(const XalanDOMString& name) const; 00106 00107 virtual XalanSize_t 00108 getLength() const; 00109 00110 virtual XalanNode* 00111 getNamedItemNS( 00112 const XalanDOMString& namespaceURI, 00113 const XalanDOMString& localName) const; 00114 00115 00116 // Not implemented... 00117 XalanSourceTreeElementA(const XalanSourceTreeElementA&); 00118 00119 XalanSourceTreeElementA& 00120 operator=(const XalanSourceTreeElementA&); 00121 00122 bool 00123 operator==(const XalanSourceTreeElementA&) const; 00124 00125 00126 // Data members... 00127 XalanSourceTreeAttr* const * m_attributes; 00128 00129 const XalanSize_t m_attributeCount; 00130 }; 00131 00132 00133 00134 XALAN_CPP_NAMESPACE_END 00135 00136 00137 00138 #endif // !defined(XALANSOURCETREEELEMENTA_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 |
|