Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XercesNotationBridge.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(XERCESNOTATIONBRIDGE_HEADER_GUARD_1357924680)
17 #define XERCESNOTATIONBRIDGE_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
24 
25 #if XERCES_VERSION_MAJOR >= 2
26 #include <xercesc/dom/deprecated/DOM_Notation.hpp>
27 #else
28 #include <xercesc/dom/DOM_Notation.hpp>
29 #endif
30 
31 
32 
34 
35 
36 
38 
39 
40 
41 XALAN_CPP_NAMESPACE_BEGIN
42 
43 
44 
46 
47 
54 {
55 public:
56 
58  const DOM_NotationType& theXercesDOMNotation,
59  const XercesBridgeNavigator& theNavigator);
60 
61  virtual
63 
64 
65  // These interfaces are inherited from XalanNode...
66 
67  virtual const XalanDOMString&
68  getNodeName() const;
69 
73  virtual const XalanDOMString&
74  getNodeValue() const;
75 
79  virtual NodeType
80  getNodeType() const;
81 
91  virtual XalanNode*
92  getParentNode() const;
93 
107  virtual const XalanNodeList*
108  getChildNodes() const;
109 
115  virtual XalanNode*
116  getFirstChild() const;
117 
123  virtual XalanNode*
124  getLastChild() const;
125 
131  virtual XalanNode*
132  getPreviousSibling() const;
133 
139  virtual XalanNode*
140  getNextSibling() const;
141 
146  virtual const XalanNamedNodeMap*
147  getAttributes() const;
148 
158  virtual XalanDocument*
159  getOwnerDocument() const;
160 
162 
164 
183 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
184  virtual XalanNode*
185 #else
186  virtual XercesNotationBridge*
187 #endif
188  cloneNode(bool deep) const;
189 
191 
193 
210  virtual XalanNode*
211  insertBefore(
212  XalanNode* newChild,
213  XalanNode* refChild);
214 
228  virtual XalanNode*
229  replaceChild(
230  XalanNode* newChild,
231  XalanNode* oldChild);
232 
240  virtual XalanNode*
241  removeChild(XalanNode* oldChild);
242 
254  virtual XalanNode*
255  appendChild(XalanNode* newChild);
256 
258 
260 
268  virtual bool
269  hasChildNodes() const;
270 
271 
273 
275 
276 
290  virtual void
291  setNodeValue(const XalanDOMString& nodeValue);
292 
294 
296 
313  virtual void
314  normalize();
315 
329  virtual bool
330  isSupported(
331  const XalanDOMString& feature,
332  const XalanDOMString& version) const;
333 
347  virtual const XalanDOMString&
348  getNamespaceURI() const;
349 
354  virtual const XalanDOMString&
355  getPrefix() const;
356 
364  virtual const XalanDOMString&
365  getLocalName() const;
366 
396  virtual void
397  setPrefix(const XalanDOMString& prefix);
398 
399  virtual bool
400  isIndexed() const;
401 
402  virtual IndexType
403  getIndex() const;
404 
406 
407  // These interfaces are inherited from XalanNotation...
408 
416  virtual const XalanDOMString&
417  getPublicId() const;
418 
426  virtual const XalanDOMString&
427  getSystemId() const;
428 
436  {
437  return m_xercesNode;
438  }
439 
440 private:
441 
442  // Not implemented...
443  XercesNotationBridge(const XercesNotationBridge& theSource);
444 
446  operator=(const XercesNotationBridge& theSource);
447 
448  bool
449  operator==(const XercesNotationBridge& theRHS) const;
450 
451  // Data members...
452  DOM_NotationType m_xercesNode;
453 
454  const XercesBridgeNavigator& m_navigator;
455 };
456 
457 
458 
459 XALAN_CPP_NAMESPACE_END
460 
461 
462 
463 #endif // !defined(XERCESNOTATIONBRIDGE_HEADER_GUARD_1357924680)
virtual XalanNode * getLastChild() const =0
Gets the last child of this node.
virtual bool isIndexed() const =0
Determine if the document is node-order indexed.
Definition: XalanNode.hpp:44
Definition: XalanNodeList.hpp:42
XalanNotation & operator=(const XalanNotation &theSource)
virtual void setPrefix(const XalanDOMString &prefix)=0
Set the namespace prefix of this node.
virtual const XalanNodeList * getChildNodes() const =0
Gets a NodeList that contains all children of this node.
virtual XalanNode * cloneNode(bool deep) const =0
Returns a duplicate of this node.
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 const XalanDOMString & getNodeValue() const =0
Gets the value of this node, depending on its type.
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:37
virtual NodeType getNodeType() const =0
An enum value representing the type of the underlying object.
virtual XalanNode * insertBefore(XalanNode *newChild, XalanNode *refChild)=0
Inserts the node newChild before the existing child node refChild.
NodeType
Definition: XalanNode.hpp:53
virtual void normalize()=0
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes...
virtual IndexType getIndex() const =0
Get the node's index.
virtual XalanNode * getFirstChild() const =0
Gets the first child of this node.
XERCES_CPP_NAMESPACE_QUALIFIER DOM_Notation DOM_NotationType
Definition: XercesBridgeTypes.hpp:73
virtual const XalanDOMString & getPublicId() const =0
Get the public identifier of this notation.
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...
Definition: XalanNamedNodeMap.hpp:42
virtual XalanDocument * getOwnerDocument() const =0
Gets the Document object associated with this node.
Definition: XalanDocument.hpp:51
virtual XalanNode * removeChild(XalanNode *oldChild)=0
Removes the child node indicated by oldChild from the list of children, and returns it...
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 void setNodeValue(const XalanDOMString &nodeValue)=0
Sets the value of the node.
Definition: XalanDOMString.hpp:42
virtual bool hasChildNodes() const =0
This is a convenience method to allow easy determination of whether a node has any children...
unsigned long IndexType
Definition: XalanNode.hpp:70
This class is deprecated.
Definition: XercesBridgeNavigator.hpp:53
virtual XalanNode * getPreviousSibling() const =0
Gets the node immediately preceding this node.
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
This class is deprecated.
Definition: XercesNotationBridge.hpp:53
bool operator==(const XalanNotation &theRHS) const
virtual XalanNode * getParentNode() const =0
Gets the parent of this node.
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.
DOM_NotationType getXercesNode() const
Get the Xerces node this instance represent.
Definition: XercesNotationBridge.hpp:435
Definition: XalanNotation.hpp:38
virtual const XalanNamedNodeMap * getAttributes() const =0
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise...
virtual const XalanDOMString & getNodeName() const =0
virtual const XalanDOMString & getSystemId() const =0
Get the system identifier of this notation.

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