Xalan-C++ API Reference 1.12.0
XalanSourceTreeElementA.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18#if !defined(XALANSOURCETREEELEMENTA_HEADER_GUARD_1357924680)
19#define XALANSOURCETREEELEMENTA_HEADER_GUARD_1357924680
20
21
22
24
25
26
28
29
30
32
33
34
35namespace XALAN_CPP_NAMESPACE {
36
37
38
40{
41public:
42
43 /**
44 * Constructor.
45 *
46 * @param theTagName The tag name of the element
47 * @param theOwnerDocument The document that owns the instance
48 * @param theAttributes An array of pointers to the attribute instances for the element
49 * @param theAttributeCount The number of attributes.
50 * @param theParentNode The parent node, if any.
51 * @param thePreviousSibling The previous sibling, if any.
52 * @param theNextSibling The next sibling, if any.
53 * @param theIndex The document-order index of the node.
54 */
56 MemoryManager& theManager,
65
66 virtual
68
69
70 virtual const XalanNamedNodeMap*
72
73 virtual const XalanDOMString&
75
76 virtual const XalanDOMString&
77 getPrefix() const;
78
79 virtual const XalanDOMString&
80 getLocalName() const;
81
82
83 // public interfaces not inherited from XalanElement...
84
87 {
88 return m_attributeCount;
89 }
90
93 {
94 return index < m_attributeCount ? m_attributes[index] : 0;
95 }
96
97private:
98
99 // These are from XalanNamedNodeMap...
100
101 virtual XalanNode*
102 item(XalanSize_t index) const;
103
104 virtual XalanNode*
105 getNamedItem(const XalanDOMString& name) const;
106
107 virtual XalanSize_t
108 getLength() const;
109
110 virtual XalanNode*
111 getNamedItemNS(
113 const XalanDOMString& localName) const;
114
115
116 // Not implemented...
118
120 operator=(const XalanSourceTreeElementA&);
121
122 bool
124
125
126 // Data members...
127 XalanSourceTreeAttr* const * m_attributes;
128
129 const XalanSize_t m_attributeCount;
130};
131
132
133
134}
135
136
137
138#endif // !defined(XALANSOURCETREEELEMENTA_HEADER_GUARD_1357924680)
#define XALAN_XALANSOURCETREE_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
virtual const XalanDOMString & getLocalName() const
Returns the local part of the qualified name of this node.
virtual const XalanDOMString & getNamespaceURI() const
Get the namespace URI of this node, or null if it is unspecified.
XalanSourceTreeElementA(MemoryManager &theManager, const XalanDOMString &theTagName, XalanSourceTreeDocument *theOwnerDocument, XalanSourceTreeAttr **theAttributes, XalanSize_t theAttributeCount, XalanNode *theParentNode=0, XalanNode *thePreviousSibling=0, XalanNode *theNextSibling=0, IndexType theIndex=0)
Constructor.
XalanSourceTreeAttr * getAttributeByIndex(XalanSize_t index) const
virtual const XalanDOMString & getPrefix() const
Get the namespace prefix of this node, or null if it is unspecified.
virtual const XalanNamedNodeMap * getAttributes() const
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)