Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XercesProcessingInstructionBridge.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(XERCESPROCESSINGINSTRUCTIONBRIDGE_HEADER_GUARD_1357924680)
17 #define XERCESPROCESSINGINSTRUCTIONBRIDGE_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
24 
25 #if XERCES_VERSION_MAJOR >= 2
26 #include <xercesc/dom/deprecated/DOM_ProcessingInstruction.hpp>
27 #else
28 #include <xercesc/dom/DOM_ProcessingInstruction.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_ProcessingInstructionType& theXercesDOMProcessingInstruction,
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
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 XalanProcessingInstruction...
408 
410 
418  virtual const XalanDOMString&
419  getTarget() const;
420 
430  virtual const XalanDOMString&
431  getData() const;
432 
434 
444  virtual void
445  setData(const XalanDOMString& data);
447 
455  {
456  return m_xercesNode;
457  }
458 
459 private:
460 
461  // Not implemented...
463 
466 
467  bool
468  operator==(const XercesProcessingInstructionBridge& theRHS) const;
469 
470  // Data members...
471  DOM_ProcessingInstructionType m_xercesNode;
472 
473  const XercesBridgeNavigator& m_navigator;
474 };
475 
476 
477 
478 XALAN_CPP_NAMESPACE_END
479 
480 
481 
482 #endif // !defined(XERCESPROCESSINGINSTRUCTIONBRIDGE_HEADER_GUARD_1357924680)
virtual XalanDocument * getOwnerDocument() const =0
Gets the Document object associated with this node.
virtual const XalanDOMString & getTarget() const =0
The target of this processing instruction.
Definition: XalanNode.hpp:44
Definition: XalanNodeList.hpp:42
virtual XalanNode * insertBefore(XalanNode *newChild, XalanNode *refChild)=0
Inserts the node newChild before the existing child node refChild.
virtual const XalanDOMString & getData() const =0
The content of this processing instruction.
virtual const XalanNodeList * getChildNodes() const =0
Gets a NodeList that contains all children of this node.
virtual const XalanDOMString & getNodeValue() const =0
Gets the value of this node, depending on its type.
virtual XalanNode * getPreviousSibling() const =0
Gets the node immediately preceding this node.
virtual XalanNode * removeChild(XalanNode *oldChild)=0
Removes the child node indicated by oldChild from the list of children, and returns it...
virtual void setData(const XalanDOMString &data)=0
Sets the content of this processing instruction.
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:37
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.
NodeType
Definition: XalanNode.hpp:53
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.
XERCES_CPP_NAMESPACE_QUALIFIER DOM_ProcessingInstruction DOM_ProcessingInstructionType
Definition: XercesBridgeTypes.hpp:74
virtual bool hasChildNodes() const =0
This is a convenience method to allow easy determination of whether a node has any children...
virtual void setNodeValue(const XalanDOMString &nodeValue)=0
Sets the value of the node.
virtual const XalanDOMString & getNodeName() const =0
DOM_ProcessingInstructionType getXercesNode() const
Get the Xerces node this instance represent.
Definition: XercesProcessingInstructionBridge.hpp:454
virtual XalanNode * appendChild(XalanNode *newChild)=0
Adds the node newChild to the end of the list of children of this node.
virtual IndexType getIndex() const =0
Get the node's index.
This class is deprecated.
Definition: XercesProcessingInstructionBridge.hpp:53
XalanProcessingInstruction & operator=(const XalanProcessingInstruction &theSource)
Definition: XalanProcessingInstruction.hpp:38
Definition: XalanNamedNodeMap.hpp:42
virtual XalanNode * getParentNode() const =0
Gets the parent of this node.
virtual bool isIndexed() const =0
Determine if the document is node-order indexed.
virtual void normalize()=0
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes...
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...
Definition: XalanDocument.hpp:51
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
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 const XalanDOMString & getNamespaceURI() const =0
Get the namespace URI of this node, or null if it is unspecified.
Definition: XalanDOMString.hpp:42
virtual XalanNode * cloneNode(bool deep) const =0
Returns a duplicate of this node.
virtual void setPrefix(const XalanDOMString &prefix)=0
Set the namespace prefix of this node.
unsigned long IndexType
Definition: XalanNode.hpp:70
virtual const XalanDOMString & getPrefix() const =0
Get the namespace prefix of this node, or null if it is unspecified.
bool operator==(const XalanProcessingInstruction &theRHS) const
This class is deprecated.
Definition: XercesBridgeNavigator.hpp:53
virtual XalanNode * getLastChild() const =0
Gets the last child of this node.

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