Xalan-C++ API Reference  1.12.0
XercesTextWrapper.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(XERCESTEXTWRAPPER_HEADER_GUARD_1357924680)
19 #define XERCESTEXTWRAPPER_HEADER_GUARD_1357924680
20 
21 
22 
24 
25 
26 
28 
29 
30 
32 
33 
34 
35 namespace XALAN_CPP_NAMESPACE {
36 
37 
38 
39 class XercesWrapperNavigator;
40 
41 
42 
44 {
45 public:
46 
48  const DOMTextType* theXercesText,
49  const XercesWrapperNavigator& theNavigator);
50 
51  virtual
53 
54 
55  // These interfaces are inherited from XalanText
56 
57  virtual const XalanDOMString&
58  getNodeName() const;
59 
60  virtual const XalanDOMString&
61  getNodeValue() const;
62 
63  virtual NodeType
64  getNodeType() const;
65 
66  virtual XalanNode*
67  getParentNode() const;
68 
69  virtual const XalanNodeList*
70  getChildNodes() const;
71 
72  virtual XalanNode*
73  getFirstChild() const;
74 
75  virtual XalanNode*
76  getLastChild() const;
77 
78  virtual XalanNode*
80 
81  virtual XalanNode*
82  getNextSibling() const;
83 
84  virtual const XalanNamedNodeMap*
85  getAttributes() const;
86 
87  virtual XalanDocument*
89 
90  virtual const XalanDOMString&
91  getNamespaceURI() const;
92 
93  virtual const XalanDOMString&
94  getPrefix() const;
95 
96  virtual const XalanDOMString&
97  getLocalName() const;
98 
99  virtual bool
100  isIndexed() const;
101 
102  virtual IndexType
103  getIndex() const;
104 
105  virtual const XalanDOMString&
106  getData() const;
107 
108  virtual bool
109  isWhitespace() const;
110 
111  /**
112  * Get the Xerces node this instance represent.
113  *
114  * @return The Xerces node
115  */
116  const DOMTextType*
118  {
119  return m_xercesNode;
120  }
121 
122 private:
123 
124  // Not implemented...
125  XercesTextWrapper(const XercesTextWrapper& theSource);
126 
128  operator=(const XercesTextWrapper& theSource);
129 
130  bool
131  operator==(const XercesTextWrapper& theRHS) const;
132 
133  // Data members...
134  const DOMTextType* const m_xercesNode;
135 
136  const XercesWrapperNavigator& m_navigator;
137 };
138 
139 
140 
141 }
142 
143 
144 
145 #endif // !defined(XERCESTEXTWRAPPER_HEADER_GUARD_1357924680)
xalanc::XercesTextWrapper::getPrefix
virtual const XalanDOMString & getPrefix() const
Get the namespace prefix of this node, or null if it is unspecified.
xalanc::XercesTextWrapper::isWhitespace
virtual bool isWhitespace() const
Determine whether the text node instance is composed entirely of XML whitespace.
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XercesTextWrapper::~XercesTextWrapper
virtual ~XercesTextWrapper()
xalanc::XercesTextWrapper::getNodeType
virtual NodeType getNodeType() const
An enum value representing the type of the underlying object.
XalanText.hpp
xalanc::XercesTextWrapper::getChildNodes
virtual const XalanNodeList * getChildNodes() const
Gets a NodeList that contains all children of this node.
xalanc::XalanNode
Definition: XalanNode.hpp:39
xalanc::XalanNode::NodeType
NodeType
Definition: XalanNode.hpp:48
xalanc::XalanText
Definition: XalanText.hpp:41
xalanc::XercesTextWrapper::getLastChild
virtual XalanNode * getLastChild() const
Gets the last child of this node.
xalanc::XercesTextWrapper::getIndex
virtual IndexType getIndex() const
Get the node's index.
xalanc::XalanDocument
Definition: XalanDocument.hpp:37
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1118
xalanc::XercesTextWrapper::getOwnerDocument
virtual XalanDocument * getOwnerDocument() const
Gets the Document object associated with this node.
xalanc::XercesTextWrapper::getNodeValue
virtual const XalanDOMString & getNodeValue() const
Gets the value of this node, depending on its type.
xalanc::XercesTextWrapper::getNodeName
virtual const XalanDOMString & getNodeName() const
Gets the name of this node, depending on its type.
xalanc::XercesTextWrapper
Definition: XercesTextWrapper.hpp:44
xalanc::XalanNode::IndexType
unsigned long IndexType
Definition: XalanNode.hpp:64
xalanc::XercesTextWrapper::getLocalName
virtual const XalanDOMString & getLocalName() const
Returns the local part of the qualified name of this node.
xalanc::XercesTextWrapper::isIndexed
virtual bool isIndexed() const
Determine if the document is node-order indexed.
xalanc::XercesTextWrapper::XercesTextWrapper
XercesTextWrapper(const DOMTextType *theXercesText, const XercesWrapperNavigator &theNavigator)
xalanc::XercesTextWrapper::getAttributes
virtual const XalanNamedNodeMap * getAttributes() const
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
xalanc::XercesTextWrapper::getXercesNode
const DOMTextType * getXercesNode() const
Get the Xerces node this instance represent.
Definition: XercesTextWrapper.hpp:117
XercesParserLiaisonDefinitions.hpp
xalanc::XalanNodeList
Definition: XalanNodeList.hpp:37
XALAN_XERCESPARSERLIAISON_EXPORT
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:39
xalanc::XercesTextWrapper::getNamespaceURI
virtual const XalanDOMString & getNamespaceURI() const
Get the namespace URI of this node, or null if it is unspecified.
xalanc::DOMTextType
xercesc::DOMText DOMTextType
Definition: XercesWrapperTypes.hpp:69
xalanc::XercesTextWrapper::getData
virtual const XalanDOMString & getData() const
Returns the character data of the node that implements this interface.
xalanc::XercesTextWrapper::getParentNode
virtual XalanNode * getParentNode() const
Gets the parent of this node.
xalanc::XalanNamedNodeMap
Definition: XalanNamedNodeMap.hpp:37
XercesWrapperTypes.hpp
xalanc::XercesTextWrapper::getNextSibling
virtual XalanNode * getNextSibling() const
Gets the node immediately following this node.
xalanc::XercesWrapperNavigator
Definition: XercesWrapperNavigator.hpp:56
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:46
xalanc::XercesTextWrapper::getPreviousSibling
virtual XalanNode * getPreviousSibling() const
Gets the node immediately preceding this node.
xalanc::XercesTextWrapper::getFirstChild
virtual XalanNode * getFirstChild() const
Gets the first child of this node.