Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


XercesElementWrapper.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(XERCESELEMENTWRAPPER_HEADER_GUARD_1357924680)
19 #define XERCESELEMENTWRAPPER_HEADER_GUARD_1357924680
20 
21 
22 
24 
25 
26 
29 
30 
31 
33 
34 
35 
38 
39 
40 
41 XALAN_CPP_NAMESPACE_BEGIN
42 
43 
44 
46 
47 
48 
50 {
51 public:
52 
54  const DOMElementType* theXercesElement,
55  const XercesWrapperNavigator& theNavigator);
56 
57  virtual
59 
60 
61  // These interfaces are inherited from XalanElement...
62 
63  virtual const XalanDOMString&
64  getNodeName() const;
65 
66  virtual const XalanDOMString&
67  getNodeValue() const;
68 
69  virtual NodeType
70  getNodeType() const;
71 
72  virtual XalanNode*
73  getParentNode() const;
74 
75  virtual const XalanNodeList*
76  getChildNodes() const;
77 
78  virtual XalanNode*
79  getFirstChild() const;
80 
81  virtual XalanNode*
82  getLastChild() const;
83 
84  virtual XalanNode*
85  getPreviousSibling() const;
86 
87  virtual XalanNode*
88  getNextSibling() const;
89 
90  virtual const XalanNamedNodeMap*
91  getAttributes() const;
92 
93  virtual XalanDocument*
94  getOwnerDocument() const;
95 
96  virtual const XalanDOMString&
97  getNamespaceURI() const;
98 
99  virtual const XalanDOMString&
100  getPrefix() const;
101 
102  virtual const XalanDOMString&
103  getLocalName() const;
104 
105  virtual bool
106  isIndexed() const;
107 
108  virtual IndexType
109  getIndex() const;
110 
111  virtual const XalanDOMString&
112  getTagName() const;
113 
114  /**
115  * Get the Xerces node this instance represent.
116  *
117  * @return The Xerces node
118  */
119  const DOMElementType*
121  {
122  return m_xercesNode;
123  }
124 
125  //@}
126 
127 private:
128 
129  // Implementation of XalanNodeList for children.
130  virtual XalanNode*
131  item(XalanSize_t index) const;
132 
133  virtual XalanSize_t
134  getLength() const;
135 
136 
137  // Not implemented...
138  XercesElementWrapper(const XercesElementWrapper& theSource);
139 
140  XalanNode&
141  operator=(const XalanNode& theSource);
142 
143  bool
144  operator==(const XercesElementWrapper& theRHS) const;
145 
146  // Data members...
147  const DOMElementType* const m_xercesNode;
148 
149  const XercesWrapperNavigator& m_navigator;
150 
151  XercesNamedNodeMapWrapper m_attributes;
152 };
153 
154 
155 
156 XALAN_CPP_NAMESPACE_END
157 
158 
159 
160 #endif // !defined(XERCESELEMENTWRAPPER_HEADER_GUARD_1357924680)
virtual const XalanDOMString & getPrefix() const =0
Get the namespace prefix of this node, or null if it is unspecified.
virtual const XalanDOMString & getNamespaceURI() const =0
Get the namespace URI of this node, or null if it is unspecified.
virtual XalanNode * getParentNode() const =0
Gets the parent of this node.
virtual const XalanDOMString & getNodeValue() const =0
Gets the value of this node, depending on its type.
#define XALAN_XERCESPARSERLIAISON_EXPORT
virtual XalanNode * getFirstChild() const =0
Gets the first child of this node.
virtual NodeType getNodeType() const =0
An enum value representing the type of the underlying object.
virtual const XalanDOMString & getTagName() const =0
The name of the element.
virtual XalanDocument * getOwnerDocument() const =0
Gets the Document object associated with this node.
virtual bool isIndexed() const =0
Determine if the document is node-order indexed.
virtual const XalanNamedNodeMap * getAttributes() const =0
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise...
virtual XalanNode * getNextSibling() const =0
Gets the node immediately following this node.
virtual const XalanNodeList * getChildNodes() const =0
Gets a NodeList that contains all children of this node.
virtual XalanNode * getPreviousSibling() const =0
Gets the node immediately preceding this node.
const DOMElementType * getXercesNode() const
Get the Xerces node this instance represent.
virtual XalanNode * item(XalanSize_t index) const =0
Returns the indexth item in the collection.
virtual const XalanDOMString & getNodeName() const =0
Gets the name of this node, depending on its type.
bool operator==(const XalanElement &theRHS) const
virtual XalanNode * getLastChild() const =0
Gets the last child of this node.
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
virtual IndexType getIndex() const =0
Get the node's index.
XalanElement & operator=(const XalanElement &theSource)
unsigned long IndexType
Definition: XalanNode.hpp:64
virtual XalanSize_t getLength() const =0
Returns the number of nodes in the list.
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement DOMElementType

Interpreting class diagrams

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

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

Apache Logo