Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanSourceTreeElementNA.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALANSOURCETREEELEMENTNA_HEADER_GUARD_1357924680)
17 #define XALANSOURCETREEELEMENTNA_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
24 
26 
27 
28 
30 
31 
32 
33 XALAN_CPP_NAMESPACE_BEGIN
34 
35 
36 
38 {
39 public:
40 
52  MemoryManagerType& theManager,
53  const XalanDOMString& theTagName,
54  XalanSourceTreeDocument* theOwnerDocument,
55  XalanNode* theParentNode = 0,
56  XalanNode* thePreviousSibling = 0,
57  XalanNode* theNextSibling = 0,
58  IndexType theIndex = 0);
59 
60  virtual
62 
63 
64  virtual const XalanNamedNodeMap*
65  getAttributes() const;
66 
67 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
68  virtual XalanNode*
69 #else
71 #endif
72  cloneNode(bool deep) const;
73 
74  virtual const XalanDOMString&
75  getNamespaceURI() const;
76 
77  virtual const XalanDOMString&
78  getPrefix() const;
79 
80  virtual const XalanDOMString&
81  getLocalName() const;
82 
83  virtual const XalanDOMString&
84  getAttribute(const XalanDOMString& name) const;
85 
86  virtual XalanAttr*
87  getAttributeNode(const XalanDOMString& name) const;
88 
89  virtual const XalanDOMString&
91  const XalanDOMString& namespaceURI,
92  const XalanDOMString& localName) const;
93 
94  virtual XalanAttr*
96  const XalanDOMString& namespaceURI,
97  const XalanDOMString& localName) const;
98 
99 
100  // public interfaces not inherited from XalanElement...
101 
103  clone(bool deep) const
104  {
105  MemoryManagerType& theManager = const_cast<XalanSourceTreeElementNA*>(this)->getMemoryManager();
106 
107  return XalanSourceTreeElementNA::create(theManager, *this, deep);
108  }
109 
110 protected:
111 
113  MemoryManagerType& theManager,
114  const XalanSourceTreeElementNA& theSource,
115  bool deep = false);
116 
118  create(
119  MemoryManagerType& theManager,
120  const XalanSourceTreeElementNA& theSource,
121  bool deep = false);
122 
124 
125 private:
126 
127  // Not implemented...
129  operator=(const XalanSourceTreeElementNA& theSource);
130 
131  bool
132  operator==(const XalanSourceTreeElementNA& theRHS) const;
133 };
134 
135 
136 
137 XALAN_CPP_NAMESPACE_END
138 
139 
140 
141 #endif // !defined(XALANSOURCETREEELEMENTNA_HEADER_GUARD_1357924680)
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
Definition: XalanNode.hpp:44
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
virtual XalanAttr * getAttributeNode(const XalanDOMString &name) const =0
Retrieves an DOM_Attr node by name.
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
Definition: XalanAttr.hpp:38
Definition: XalanEmptyNamedNodeMap.hpp:38
static XalanSourceTreeElementNA * create(MemoryManagerType &theManager, const XalanSourceTreeElementNA &theSource, bool deep=false)
virtual XalanSourceTreeElement * cloneNode(bool deep) const =0
Returns a duplicate of this node.
MemoryManagerType & getMemoryManager()
Definition: XalanSourceTreeElement.hpp:73
static const XalanEmptyNamedNodeMap s_emptyAttributes
Definition: XalanSourceTreeElementNA.hpp:123
virtual XalanAttr * getAttributeNodeNS(const XalanDOMString &namespaceURI, const XalanDOMString &localName) const =0
Retrieves an DOM_Attr node by local name and namespace URI.
virtual const XalanDOMString & getPrefix() const =0
Get the namespace prefix of this node, or null if it is unspecified.
XalanSourceTreeElementNA * clone(bool deep) const
Definition: XalanSourceTreeElementNA.hpp:103
#define XALAN_XALANSOURCETREE_EXPORT
Definition: XalanSourceTreeDefinitions.hpp:33
Definition: XalanNamedNodeMap.hpp:42
virtual const XalanDOMString & getAttributeNS(const XalanDOMString &namespaceURI, const XalanDOMString &localName) const =0
Retrieves an attribute value by local name and namespace URI.
virtual const XalanNamedNodeMap * getAttributes() const =0
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise...
Definition: XalanSourceTreeElementNA.hpp:37
Definition: XalanDOMString.hpp:42
virtual const XalanDOMString & getNamespaceURI() const =0
Get the namespace URI of this node, or null if it is unspecified.
unsigned long IndexType
Definition: XalanNode.hpp:70
Definition: XalanSourceTreeDocument.hpp:73
Definition: XalanSourceTreeElement.hpp:44
virtual const XalanDOMString & getAttribute(const XalanDOMString &name) const =0
Retrieves an attribute value by name.

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo