Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XercesEntityReferenceWrapper.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(XERCESENTITYREFERENCEWRAPPER_HEADER_GUARD_1357924680)
17 #define XERCESENTITYREFERENCEWRAPPER_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
25 
26 
28 
29 
30 
33 
34 
35 
36 XALAN_CPP_NAMESPACE_BEGIN
37 
38 
39 
41 
42 
43 
45 {
46 public:
47 
49  const DOMEntityReferenceType* theXercesDOMEntityReference,
50  const XercesWrapperNavigator& theNavigator);
51 
53  create( MemoryManagerType& theManager,
54  const DOMEntityReferenceType* theXercesDOMEntityReference,
55  const XercesWrapperNavigator& theNavigator);
56 
57  virtual
59 
60 
61  // These interfaces are inherited from XalanNode...
62 
63  virtual const XalanDOMString&
64  getNodeName() const;
65 
69  virtual const XalanDOMString&
70  getNodeValue() const;
71 
75  virtual NodeType
76  getNodeType() const;
77 
87  virtual XalanNode*
88  getParentNode() const;
89 
103  virtual const XalanNodeList*
104  getChildNodes() const;
105 
111  virtual XalanNode*
112  getFirstChild() const;
113 
119  virtual XalanNode*
120  getLastChild() const;
121 
127  virtual XalanNode*
128  getPreviousSibling() const;
129 
135  virtual XalanNode*
136  getNextSibling() const;
137 
142  virtual const XalanNamedNodeMap*
143  getAttributes() const;
144 
154  virtual XalanDocument*
155  getOwnerDocument() const;
156 
158 
160 
179 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
180  virtual XalanNode*
181 #else
183 #endif
184  cloneNode(bool deep) const;
185 
187 
189 
206  virtual XalanNode*
207  insertBefore(
208  XalanNode* newChild,
209  XalanNode* refChild);
210 
224  virtual XalanNode*
225  replaceChild(
226  XalanNode* newChild,
227  XalanNode* oldChild);
228 
236  virtual XalanNode*
237  removeChild(XalanNode* oldChild);
238 
250  virtual XalanNode*
251  appendChild(XalanNode* newChild);
252 
254 
256 
264  virtual bool
265  hasChildNodes() const;
266 
267 
269 
271 
272 
286  virtual void
287  setNodeValue(const XalanDOMString& nodeValue);
288 
290 
292 
309  virtual void
310  normalize();
311 
325  virtual bool
326  isSupported(
327  const XalanDOMString& feature,
328  const XalanDOMString& version) const;
329 
343  virtual const XalanDOMString&
344  getNamespaceURI() const;
345 
350  virtual const XalanDOMString&
351  getPrefix() const;
352 
360  virtual const XalanDOMString&
361  getLocalName() const;
362 
392  virtual void
393  setPrefix(const XalanDOMString& prefix);
394 
395  virtual bool
396  isIndexed() const;
397 
398  virtual IndexType
399  getIndex() const;
400 
408  {
409  return m_xercesNode;
410  }
411 
413 
414 private:
415 
416  // Not implemented...
418 
420  operator=(const XercesEntityReferenceWrapper& theSource);
421 
422  bool
423  operator==(const XercesEntityReferenceWrapper& theRHS) const;
424 
425  // Data members...
426  const DOMEntityReferenceType* const m_xercesNode;
427 
428  const XercesWrapperNavigator& m_navigator;
429 
430  XercesNodeListWrapper m_children;
431 };
432 
433 
434 
435 XALAN_CPP_NAMESPACE_END
436 
437 
438 
439 #endif // !defined(XERCESENTITYREFERENCEWRAPPER_HEADER_GUARD_1357924680)
virtual void setNodeValue(const XalanDOMString &nodeValue)=0
Sets the value of the node.
virtual NodeType getNodeType() const =0
An enum value representing the type of the underlying object.
virtual const XalanNodeList * getChildNodes() const =0
Gets a NodeList that contains all children of this node.
Definition: XalanNode.hpp:44
Definition: XalanNodeList.hpp:42
virtual const XalanDOMString & getNodeValue() const =0
Gets the value of this node, depending on its type.
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
Definition: XercesNodeListWrapper.hpp:41
virtual bool hasChildNodes() const =0
This is a convenience method to allow easy determination of whether a node has any children...
virtual XalanNode * insertBefore(XalanNode *newChild, XalanNode *refChild)=0
Inserts the node newChild before the existing child node refChild.
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:37
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 * replaceChild(XalanNode *newChild, XalanNode *oldChild)=0
Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node...
virtual XalanNode * getLastChild() const =0
Gets the last child of this node.
NodeType
Definition: XalanNode.hpp:53
virtual XalanNode * removeChild(XalanNode *oldChild)=0
Removes the child node indicated by oldChild from the list of children, and returns it...
virtual XalanNode * getFirstChild() const =0
Gets the first child of this node.
virtual XalanNode * getParentNode() const =0
Gets the parent of this node.
Definition: XercesEntityReferenceWrapper.hpp:44
virtual XalanNode * getPreviousSibling() const =0
Gets the node immediately preceding this node.
virtual XalanDocument * getOwnerDocument() const =0
Gets the Document object associated with this node.
virtual void normalize()=0
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes...
XalanEntityReference & operator=(const XalanEntityReference &theSource)
const DOMEntityReferenceType * getXercesNode() const
Get the Xerces node this instance represent.
Definition: XercesEntityReferenceWrapper.hpp:407
virtual void setPrefix(const XalanDOMString &prefix)=0
Set the namespace prefix of this node.
Definition: XalanNamedNodeMap.hpp:42
virtual XalanNode * cloneNode(bool deep) const =0
Returns a duplicate of this node.
Definition: XalanDocument.hpp:51
virtual const XalanDOMString & getNodeName() const =0
virtual const XalanDOMString & getNamespaceURI() const =0
Get the namespace URI of this node, or null if it is unspecified.
virtual XalanNode * getNextSibling() const =0
Gets the node immediately following this node.
virtual XalanNode * appendChild(XalanNode *newChild)=0
Adds the node newChild to the end of the list of children of this node.
Definition: XalanDOMString.hpp:42
Definition: XalanEntityReference.hpp:38
virtual const XalanDOMString & getPrefix() const =0
Get the namespace prefix of this node, or null if it is unspecified.
unsigned long IndexType
Definition: XalanNode.hpp:70
Definition: XercesWrapperNavigator.hpp:53
virtual bool isIndexed() const =0
Determine if the document is node-order indexed.
XERCES_CPP_NAMESPACE_QUALIFIER DOMEntityReference DOMEntityReferenceType
Definition: XercesWrapperTypes.hpp:62
bool operator==(const XalanEntityReference &theRHS) const
virtual bool isSupported(const XalanDOMString &feature, const XalanDOMString &version) const =0
Tests whether the DOM implementation implements a specific feature and that feature is supported by t...
virtual IndexType getIndex() const =0
Get the node's index.

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