Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XercesCDATASectionWrapper.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(XERCESCDATASECTIONWRAPPER_HEADER_GUARD_1357924680)
17 #define XERCESCDATASECTIONWRAPPER_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
25 
26 
28 
29 
30 
32 
33 
34 
35 XALAN_CPP_NAMESPACE_BEGIN
36 
37 
38 
40 
41 
42 
44 {
45 public:
46 
48  const DOMCDATASectionType* theXercesCDATASection,
49  const XercesWrapperNavigator& theNavigator);
50 
52  create( MemoryManagerType& theManager,
53  const DOMCDATASectionType* theXercesCDATASection,
54  const XercesWrapperNavigator& theNavigator);
55 
56  virtual
58 
59 
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 
402 
403  // These interfaces are inherited from XalanCDATASection...
404 
423  virtual const XalanDOMString&
424  getData() const;
425 
433  virtual unsigned int
434  getLength() const;
435 
451  virtual XalanDOMString&
453  unsigned int offset,
454  unsigned int count,
455  XalanDOMString& theResult) const;
456 
458 
469  virtual void
470  appendData(const XalanDOMString& arg);
471 
482  virtual void
483  insertData(
484  unsigned int offset,
485  const XalanDOMString& arg);
486 
503  virtual void
504  deleteData(
505  unsigned int offset,
506  unsigned int count);
507 
526  virtual void
527  replaceData(
528  unsigned int offset,
529  unsigned int count,
530  const XalanDOMString& arg);
531 
533 
535 
537 
555  virtual XalanText*
556  splitText(unsigned int offset);
557 
559 
560  virtual bool
561  isIgnorableWhitespace() const;
562 
568  const DOMCDATASectionType*
570  {
571  return m_xercesNode;
572  }
573 
574 private:
575 
576  // Not implemented...
578 
580  operator=(const XercesCDATASectionWrapper& theSource);
581 
582  bool
583  operator==(const XercesCDATASectionWrapper& theRHS) const;
584 
585  // Data members...
586  const DOMCDATASectionType* m_xercesNode;
587 
588  const XercesWrapperNavigator& m_navigator;
589 };
590 
591 
592 
593 XALAN_CPP_NAMESPACE_END
594 
595 
596 
597 #endif // !defined(XERCESCDATASECTIONWRAPPER_HEADER_GUARD_1357924680)
virtual void insertData(unsigned int offset, const XalanDOMString &arg)=0
Insert a string at the specified character offset.
Definition: XalanNode.hpp:44
Definition: XalanNodeList.hpp:42
Definition: XalanText.hpp:38
virtual XalanNode * appendChild(XalanNode *newChild)=0
Adds the node newChild to the end of the list of children of this node.
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
virtual const XalanNamedNodeMap * getAttributes() const =0
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise...
virtual bool hasChildNodes() const =0
This is a convenience method to allow easy determination of whether a node has any children...
virtual XalanNode * getFirstChild() const =0
Gets the first child of this node.
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition: XercesParserLiaisonDefinitions.hpp:37
const DOMCDATASectionType * getXercesNode() const
Get the Xerces node this instance represent.
Definition: XercesCDATASectionWrapper.hpp:569
NodeType
Definition: XalanNode.hpp:53
bool operator==(const XalanCDATASection &theRHS) const
virtual bool isIgnorableWhitespace() const =0
Determine whether the text node instance is composed entirely of XML whitespace.
virtual const XalanDOMString & getData() const =0
Returns the character data of the node that implements this interface.
virtual void deleteData(unsigned int offset, unsigned int count)=0
Remove a range of characters from the node.
virtual XalanCDATASection * cloneNode(bool deep) const =0
Returns a duplicate of this node.
Definition: XalanCDATASection.hpp:38
virtual XalanText * splitText(unsigned int offset)=0
Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings...
virtual void appendData(const XalanDOMString &arg)=0
Append the string to the end of the character data of the 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 XalanNodeList * getChildNodes() const =0
Gets a NodeList that contains all children of this node.
virtual void replaceData(unsigned int offset, unsigned int count, const XalanDOMString &arg)=0
Replace the characters starting at the specified character offset with the specified string...
virtual void setPrefix(const XalanDOMString &prefix)=0
Set the namespace prefix of this node.
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
virtual XalanDocument * getOwnerDocument() const =0
Gets the Document object associated with this node.
Definition: XercesCDATASectionWrapper.hpp:43
virtual unsigned int getLength() const =0
Returns the number of characters that are available through data and the substringData method below...
Definition: XalanNamedNodeMap.hpp:42
virtual XalanNode * getParentNode() const =0
Gets the parent of this node.
virtual XalanNode * getPreviousSibling() const =0
Gets the node immediately preceding this node.
virtual XalanNode * getLastChild() const =0
Gets the last child of this node.
virtual XalanDOMString & substringData(unsigned int offset, unsigned int count, XalanDOMString &theResult) const =0
Extracts a range of data from the node.
virtual bool isIndexed() const =0
Determine if the document is node-order indexed.
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: XalanDocument.hpp:51
virtual NodeType getNodeType() const =0
An enum value representing the type of the underlying object.
virtual const XalanDOMString & getNodeName() const =0
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 void setNodeValue(const XalanDOMString &nodeValue)=0
Sets the value of the node.
Definition: XalanDOMString.hpp:42
unsigned long IndexType
Definition: XalanNode.hpp:70
virtual IndexType getIndex() const =0
Get the node's index.
virtual const XalanDOMString & getNamespaceURI() const =0
Get the namespace URI of this node, or null if it is unspecified.
Definition: XercesWrapperNavigator.hpp:53
virtual void normalize()=0
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes...
XalanCDATASection & operator=(const XalanCDATASection &theSource)
virtual XalanNode * getNextSibling() const =0
Gets the node immediately following this node.
virtual XalanNode * insertBefore(XalanNode *newChild, XalanNode *refChild)=0
Inserts the node newChild before the existing child node refChild.
XERCES_CPP_NAMESPACE_QUALIFIER DOMCDATASection DOMCDATASectionType
Definition: XercesWrapperTypes.hpp:54

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