Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XObjectResultTreeFragProxyText.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(XOBJECTRESULTTREEFRAGPROXYTEXT_HEADER_GUARD_1357924680)
17 #define XOBJECTRESULTTREEFRAGPROXYTEXT_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
25 
26 
28 
29 
30 
31 XALAN_CPP_NAMESPACE_BEGIN
32 
33 
34 
35 class XObject;
36 
37 
38 
40 {
41 public:
42 
46  static void
47  initialize(MemoryManagerType& theManager);
48 
52  static void
53  terminate();
54 
60  XObjectResultTreeFragProxyText(const XObject& theXObject,
61  MemoryManagerType& theManager);
62 
63  virtual
65 
68  {
69  return m_MemoryManager;
70  }
74  virtual const XalanDOMString&
75  getNodeName() const;
76 
80  virtual const XalanDOMString&
81  getNodeValue() const;
82 
86  virtual NodeType
87  getNodeType() const;
88 
98  virtual XalanNode*
99  getParentNode() const;
100 
114  virtual const XalanNodeList*
115  getChildNodes() const;
116 
122  virtual XalanNode*
123  getFirstChild() const;
124 
130  virtual XalanNode*
131  getLastChild() const;
132 
138  virtual XalanNode*
139  getPreviousSibling() const;
140 
146  virtual XalanNode*
147  getNextSibling() const;
148 
153  virtual const XalanNamedNodeMap*
154  getAttributes() const;
155 
165  virtual XalanDocument*
166  getOwnerDocument() const;
167 
169 
171 
190 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
191  virtual XalanNode*
192 #else
194 #endif
195  cloneNode(bool deep) const;
196 
198 
200 
217  virtual XalanNode*
218  insertBefore(
219  XalanNode* newChild,
220  XalanNode* refChild);
221 
235  virtual XalanNode*
236  replaceChild(
237  XalanNode* newChild,
238  XalanNode* oldChild);
239 
247  virtual XalanNode*
248  removeChild(XalanNode* oldChild);
249 
261  virtual XalanNode*
262  appendChild(XalanNode* newChild);
263 
265 
267 
275  virtual bool
276  hasChildNodes() const;
277 
278 
280 
282 
283 
297  virtual void
298  setNodeValue(const XalanDOMString& nodeValue);
299 
301 
303 
320  virtual void
321  normalize();
322 
336  virtual bool
337  isSupported(
338  const XalanDOMString& feature,
339  const XalanDOMString& version) const;
340 
354  virtual const XalanDOMString&
355  getNamespaceURI() const;
356 
361  virtual const XalanDOMString&
362  getPrefix() const;
363 
371  virtual const XalanDOMString&
372  getLocalName() const;
373 
403  virtual void
404  setPrefix(const XalanDOMString& prefix);
405 
406  virtual bool
407  isIndexed() const;
408 
409  virtual IndexType
410  getIndex() const;
411 
413 
414  // These interfaces are inherited from XalanCDATASection...
415 
434  virtual const XalanDOMString&
435  getData() const;
436 
444  virtual unsigned int
445  getLength() const;
446 
462  virtual XalanDOMString&
464  unsigned int offset,
465  unsigned int count,
466  XalanDOMString& theResult) const;
467 
469 
480  virtual void
481  appendData(const XalanDOMString& arg);
482 
493  virtual void
494  insertData(
495  unsigned int offset,
496  const XalanDOMString& arg);
497 
514  virtual void
515  deleteData(
516  unsigned int offset,
517  unsigned int count);
518 
537  virtual void
538  replaceData(
539  unsigned int offset,
540  unsigned int count,
541  const XalanDOMString& arg);
542 
544 
546 
548 
566  virtual XalanText*
567  splitText(unsigned int offset);
568 
570 
571  virtual bool
572  isIgnorableWhitespace() const;
573 
574 
575 private:
576 
577  // Not implemented...
579  operator=(const XObjectResultTreeFragProxyText& theSource);
580 
581  bool
582  operator==(const XObjectResultTreeFragProxyText& theRHS) const;
583 
584 
585  // Data members...
586  const XObject& m_value;
587 
588  MemoryManagerType& m_MemoryManager;
589  static const XalanDOMString& s_nameString;
590 };
591 
592 
593 
594 XALAN_CPP_NAMESPACE_END
595 
596 
597 
598 #endif // XOBJECTRESULTTREEFRAGPROXYTEXT_HEADER_GUARD_1357924680
virtual unsigned int getLength() const =0
Returns the number of characters that are available through data and the substringData method below...
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 NodeType getNodeType() const =0
An enum value representing the type of the underlying object.
virtual const XalanDOMString & getPrefix() const =0
Get the namespace prefix of this node, or null if it is unspecified.
Definition: XalanNode.hpp:44
Definition: XalanNodeList.hpp:42
virtual XalanDocument * getOwnerDocument() const =0
Gets the Document object associated with this node.
Definition: XalanText.hpp:38
virtual void normalize()=0
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes...
virtual void setPrefix(const XalanDOMString &prefix)=0
Set the namespace prefix 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 XalanNode * getNextSibling() const =0
Gets the node immediately following this node.
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
virtual XalanNode * getPreviousSibling() const =0
Gets the node immediately preceding 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 XalanText * splitText(unsigned int offset)=0
Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings...
virtual const XalanNodeList * getChildNodes() const =0
Gets a NodeList that contains all children of this node.
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 * getFirstChild() const =0
Gets the first child of this node.
Definition: XObjectResultTreeFragProxyText.hpp:39
virtual XalanText * cloneNode(bool deep) const =0
Returns a duplicate of this node.
Definition: XalanNamedNodeMap.hpp:42
virtual IndexType getIndex() const =0
Get the node's index.
virtual void deleteData(unsigned int offset, unsigned int count)=0
Remove a range of characters from the node.
virtual XalanNode * appendChild(XalanNode *newChild)=0
Adds the node newChild to the end of the list of children of this node.
virtual bool hasChildNodes() const =0
This is a convenience method to allow easy determination of whether a node has any children...
Class to hold XPath return types.
Definition: XObject.hpp:61
Definition: XalanDocument.hpp:51
virtual XalanNode * getParentNode() const =0
Gets the parent 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 void appendData(const XalanDOMString &arg)=0
Append the string to the end of the character data of the node.
virtual const XalanDOMString & getData() const =0
Returns the character data of the node that implements this interface.
virtual bool isIgnorableWhitespace() const =0
Determine whether the text node instance is composed entirely of XML whitespace.
virtual void insertData(unsigned int offset, const XalanDOMString &arg)=0
Insert a string at the specified character offset.
bool operator==(const XalanText &theRHS) const
virtual XalanNode * removeChild(XalanNode *oldChild)=0
Removes the child node indicated by oldChild from the list of children, and returns it...
Definition: XalanDOMString.hpp:42
virtual bool isIndexed() const =0
Determine if the document is node-order indexed.
MemoryManagerType & getMemoryManager()
Definition: XObjectResultTreeFragProxyText.hpp:67
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...
XalanText & operator=(const XalanText &theSource)
virtual void setNodeValue(const XalanDOMString &nodeValue)=0
Sets the value of the node.
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:33
virtual XalanNode * getLastChild() const =0
Gets the last child of 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