Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


XercesAttrWrapper.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(XERCESATTRWRAPPER_HEADER_GUARD_1357924680)
19 #define XERCESATTRWRAPPER_HEADER_GUARD_1357924680
20 
21 
22 
24 
25 
26 
27 #include <xercesc/dom/DOMAttr.hpp>
28 
29 
30 
32 
33 
34 
37 
38 
39 
40 XALAN_CPP_NAMESPACE_BEGIN
41 
42 
43 
45 class XalanElement;
46 
47 
48 
50 {
51 public:
52 
54  const DOMAttrType* theXercesAttr,
55  const XercesWrapperNavigator& theNavigator);
56 
57  virtual
59 
60 
61  // These interfaces are inherited from XalanAttr...
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*
86 
87  virtual XalanNode*
88  getNextSibling() const;
89 
90  virtual const XalanNamedNodeMap*
91  getAttributes() const;
92 
93  virtual XalanDocument*
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  getName() const;
113 
114  virtual bool
115  getSpecified() const;
116 
117  virtual const XalanDOMString&
118  getValue() const;
119 
120  virtual XalanElement*
122 
123  /**
124  * Get the Xerces node this instance represent.
125  *
126  * @return The Xerces node
127  */
128  const DOMAttrType*
130  {
131  return m_xercesNode;
132  }
133 
134 private:
135 
136  // Not implemented...
137  XercesAttrWrapper(const XercesAttrWrapper& theSource);
138 
140  operator=(const XercesAttrWrapper& theSource);
141 
142  bool
143  operator==(const XercesAttrWrapper& theRHS) const;
144 
145  // Data members...
146  const DOMAttrType* const m_xercesNode;
147 
148  XercesNodeListWrapper m_children;
149 
150  const XercesWrapperNavigator& m_navigator;
151 };
152 
153 
154 
155 XALAN_CPP_NAMESPACE_END
156 
157 
158 
159 #endif // !defined(XERCESATTRBRIDGE_HEADER_GUARD_1357924680)
XercesAttrWrapper::~XercesAttrWrapper
virtual ~XercesAttrWrapper()
XalanNode::NodeType
NodeType
Definition: XalanNode.hpp:48
XercesAttrWrapper::getFirstChild
virtual XalanNode * getFirstChild() const
Gets the first child of this node.
XercesAttrWrapper::getXercesNode
const DOMAttrType * getXercesNode() const
Get the Xerces node this instance represent.
Definition: XercesAttrWrapper.hpp:129
XercesAttrWrapper::getName
virtual const XalanDOMString & getName() const
Returns the name of this attribute.
XalanDocument
Definition: XalanDocument.hpp:37
XercesAttrWrapper::getPreviousSibling
virtual XalanNode * getPreviousSibling() const
Gets the node immediately preceding this node.
XalanAttr
Definition: XalanAttr.hpp:41
XercesAttrWrapper::isIndexed
virtual bool isIndexed() const
Determine if the document is node-order indexed.
XercesAttrWrapper::getLocalName
virtual const XalanDOMString & getLocalName() const
Returns the local part of the qualified name of this node.
XercesAttrWrapper::getIndex
virtual IndexType getIndex() const
Get the node's index.
XercesAttrWrapper::getAttributes
virtual const XalanNamedNodeMap * getAttributes() const
Gets a XalanNamedNodeMap containing the attributes of this node (if it is an XalanElement) or a null ...
XalanElement
Definition: XalanElement.hpp:45
XalanAttr.hpp
XercesWrapperNavigator
Definition: XercesWrapperNavigator.hpp:56
XercesNodeListWrapper
Definition: XercesNodeListWrapper.hpp:44
XalanNode::IndexType
unsigned long IndexType
Definition: XalanNode.hpp:64
XercesAttrWrapper::XercesAttrWrapper
XercesAttrWrapper(const DOMAttrType *theXercesAttr, const XercesWrapperNavigator &theNavigator)
XercesAttrWrapper::getLastChild
virtual XalanNode * getLastChild() const
Gets the last child of this node.
XercesAttrWrapper::getNodeType
virtual NodeType getNodeType() const
An enum value representing the type of the underlying object.
XercesAttrWrapper::getOwnerElement
virtual XalanElement * getOwnerElement() const
The XalanElement node this attribute is attached to.
XercesAttrWrapper::getNodeValue
virtual const XalanDOMString & getNodeValue() const
Gets the value of this node, depending on its type.
XercesAttrWrapper::getNamespaceURI
virtual const XalanDOMString & getNamespaceURI() const
Get the namespace URI of this node.
XalanNodeList
Definition: XalanNodeList.hpp:37
XalanAttr::operator==
bool operator==(const XalanAttr &theRHS) const
XercesParserLiaisonDefinitions.hpp
XercesNodeListWrapper.hpp
DOMAttrType
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER DOMAttr DOMAttrType
Definition: XercesWrapperTypes.hpp:53
XalanAttr::operator=
XalanAttr & operator=(const XalanAttr &theSource)
XalanDOMString
Definition: XalanDOMString.hpp:46
XercesAttrWrapper::getChildNodes
virtual const XalanNodeList * getChildNodes() const
Gets a XalanNodeList that contains all children of this node.
XercesAttrWrapper::getNodeName
virtual const XalanDOMString & getNodeName() const
Gets the name of this node, depending on its type.
XALAN_XERCESPARSERLIAISON_EXPORT
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:39
XercesAttrWrapper::getOwnerDocument
virtual XalanDocument * getOwnerDocument() const
Gets the XalanDocument object associated with this node.
XercesAttrWrapper::getParentNode
virtual XalanNode * getParentNode() const
Gets the parent of this node.
XercesAttrWrapper
Definition: XercesAttrWrapper.hpp:50
XercesAttrWrapper::getPrefix
virtual const XalanDOMString & getPrefix() const
Get the namespace prefix of this node.
XercesWrapperTypes.hpp
XercesAttrWrapper::getSpecified
virtual bool getSpecified() const
XercesAttrWrapper::getValue
virtual const XalanDOMString & getValue() const
Returns the value of the attribute.
XalanNode
Definition: XalanNode.hpp:39
XercesAttrWrapper::getNextSibling
virtual XalanNode * getNextSibling() const
Gets the node immediately following this node.
XalanNamedNodeMap
Definition: XalanNamedNodeMap.hpp:37

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