Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XercesCDATASectionBridge.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(XERCESCDATASECTIONBRIDGE_HEADER_GUARD_1357924680)
17 #define XERCESCDATASECTIONBRIDGE_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
24 
25 #if XERCES_VERSION_MAJOR >= 2
26 #include <xercesc/dom/deprecated/DOM_CDATASection.hpp>
27 #else
28 #include <xercesc/dom/DOM_CDATASection.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_CDATASectionType& theXercesCDATASection,
59  const XercesBridgeNavigator& theNavigator);
60 
61  virtual
63 
64 
68  virtual const XalanDOMString&
69  getNodeName() const;
70 
74  virtual const XalanDOMString&
75  getNodeValue() const;
76 
80  virtual NodeType
81  getNodeType() const;
82 
92  virtual XalanNode*
93  getParentNode() const;
94 
108  virtual const XalanNodeList*
109  getChildNodes() const;
110 
116  virtual XalanNode*
117  getFirstChild() const;
118 
124  virtual XalanNode*
125  getLastChild() const;
126 
132  virtual XalanNode*
133  getPreviousSibling() const;
134 
140  virtual XalanNode*
141  getNextSibling() const;
142 
147  virtual const XalanNamedNodeMap*
148  getAttributes() const;
149 
159  virtual XalanDocument*
160  getOwnerDocument() const;
161 
163 
165 
184 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
185  virtual XalanNode*
186 #else
187  virtual XercesCDATASectionBridge*
188 #endif
189  cloneNode(bool deep) const;
190 
192 
194 
211  virtual XalanNode*
212  insertBefore(
213  XalanNode* newChild,
214  XalanNode* refChild);
215 
229  virtual XalanNode*
230  replaceChild(
231  XalanNode* newChild,
232  XalanNode* oldChild);
233 
241  virtual XalanNode*
242  removeChild(XalanNode* oldChild);
243 
255  virtual XalanNode*
256  appendChild(XalanNode* newChild);
257 
259 
261 
269  virtual bool
270  hasChildNodes() const;
271 
272 
274 
276 
277 
291  virtual void
292  setNodeValue(const XalanDOMString& nodeValue);
293 
295 
297 
314  virtual void
315  normalize();
316 
330  virtual bool
331  isSupported(
332  const XalanDOMString& feature,
333  const XalanDOMString& version) const;
334 
348  virtual const XalanDOMString&
349  getNamespaceURI() const;
350 
355  virtual const XalanDOMString&
356  getPrefix() const;
357 
365  virtual const XalanDOMString&
366  getLocalName() const;
367 
397  virtual void
398  setPrefix(const XalanDOMString& prefix);
399 
400  virtual bool
401  isIndexed() const;
402 
403  virtual IndexType
404  getIndex() const;
405 
407 
408  // These interfaces are inherited from XalanCDATASection...
409 
428  virtual const XalanDOMString&
429  getData() const;
430 
438  virtual unsigned int
439  getLength() const;
440 
456  virtual XalanDOMString
458  unsigned int offset,
459  unsigned int count) const;
460 
462 
473  virtual void
474  appendData(const XalanDOMString& arg);
475 
486  virtual void
487  insertData(
488  unsigned int offset,
489  const XalanDOMString& arg);
490 
507  virtual void
508  deleteData(
509  unsigned int offset,
510  unsigned int count);
511 
530  virtual void
531  replaceData(
532  unsigned int offset,
533  unsigned int count,
534  const XalanDOMString& arg);
535 
537 
539 
541 
559  virtual XalanText*
560  splitText(unsigned int offset);
561 
563 
564  virtual bool
565  isIgnorableWhitespace() const;
566 
574  {
575  return m_xercesNode;
576  }
577 
578 private:
579 
580  // Not implemented...
582 
584  operator=(const XercesCDATASectionBridge& theSource);
585 
586  bool
587  operator==(const XercesCDATASectionBridge& theRHS) const;
588 
589  // Data members...
590  DOM_CDATASectionType m_xercesNode;
591 
592  const XercesBridgeNavigator& m_navigator;
593 };
594 
595 
596 
597 XALAN_CPP_NAMESPACE_END
598 
599 
600 
601 #endif // !defined(XERCESCDATASECTIONBRIDGE_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.
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
XERCES_CPP_NAMESPACE_QUALIFIER DOM_CDATASection DOM_CDATASectionType
Definition: XercesBridgeTypes.hpp:60
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.
This class is deprecated.
Definition: XercesCDATASectionBridge.hpp:53
virtual XalanDocument * getOwnerDocument() const =0
Gets the Document object associated with this node.
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
DOM_CDATASectionType getXercesNode() const
Get the Xerces node this instance represent.
Definition: XercesCDATASectionBridge.hpp:573
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.
This class is deprecated.
Definition: XercesBridgeNavigator.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.

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