Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanSourceTreeText.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(XALANSOURCETREETEXT_HEADER_GUARD_1357924680)
17 #define XALANSOURCETREETEXT_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
24 
26 
27 
28 
30 
31 
32 
33 XALAN_CPP_NAMESPACE_BEGIN
34 
35 
36 
41 
42 
43 
45 {
46 public:
47 
51  static void
52  initialize(MemoryManagerType& theManager);
53 
57  static void
58  terminate();
59 
71  const XalanDOMString& theData,
72  XalanNode* theParentNode = 0,
73  XalanNode* thePreviousSibling = 0,
74  XalanNode* theNextSibling = 0,
75  IndexType theIndex = 0);
76 
77  virtual
79 
80 
84  virtual const XalanDOMString&
85  getNodeName() const;
86 
90  virtual const XalanDOMString&
91  getNodeValue() const;
92 
96  virtual NodeType
97  getNodeType() const;
98 
108  virtual XalanNode*
109  getParentNode() const;
110 
124  virtual const XalanNodeList*
125  getChildNodes() const;
126 
132  virtual XalanNode*
133  getFirstChild() const;
134 
140  virtual XalanNode*
141  getLastChild() const;
142 
148  virtual XalanNode*
149  getPreviousSibling() const;
150 
156  virtual XalanNode*
157  getNextSibling() const;
158 
163  virtual const XalanNamedNodeMap*
164  getAttributes() const;
165 
175  virtual XalanDocument*
176  getOwnerDocument() const;
177 
179 
181 
200 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
201  virtual XalanNode*
202 #else
203  virtual XalanSourceTreeText*
204 #endif
205  cloneNode(bool deep) const;
206 
208 
210 
227  virtual XalanNode*
228  insertBefore(
229  XalanNode* newChild,
230  XalanNode* refChild);
231 
245  virtual XalanNode*
246  replaceChild(
247  XalanNode* newChild,
248  XalanNode* oldChild);
249 
257  virtual XalanNode*
258  removeChild(XalanNode* oldChild);
259 
271  virtual XalanNode*
272  appendChild(XalanNode* newChild);
273 
275 
277 
285  virtual bool
286  hasChildNodes() const;
287 
288 
290 
292 
293 
307  virtual void
308  setNodeValue(const XalanDOMString& nodeValue);
309 
311 
313 
330  virtual void
331  normalize();
332 
346  virtual bool
347  isSupported(
348  const XalanDOMString& feature,
349  const XalanDOMString& version) const;
350 
364  virtual const XalanDOMString&
365  getNamespaceURI() const;
366 
371  virtual const XalanDOMString&
372  getPrefix() const;
373 
381  virtual const XalanDOMString&
382  getLocalName() const;
383 
413  virtual void
414  setPrefix(const XalanDOMString& prefix);
415 
416  virtual bool
417  isIndexed() const;
418 
419  virtual IndexType
420  getIndex() const;
421 
423 
424  // These interfaces are inherited from XalanCDATASection...
425 
444  virtual const XalanDOMString&
445  getData() const;
446 
454  virtual unsigned int
455  getLength() const;
456 
472  virtual XalanDOMString&
474  unsigned int offset,
475  unsigned int count,
476  XalanDOMString& theResult) const;
477 
479 
490  virtual void
491  appendData(const XalanDOMString& arg);
492 
503  virtual void
504  insertData(
505  unsigned int offset,
506  const XalanDOMString& arg);
507 
524  virtual void
525  deleteData(
526  unsigned int offset,
527  unsigned int count);
528 
547  virtual void
548  replaceData(
549  unsigned int offset,
550  unsigned int count,
551  const XalanDOMString& arg);
552 
554 
556 
558 
576  virtual XalanText*
577  splitText(unsigned int offset);
578 
580 
581  virtual bool
582  isIgnorableWhitespace() const;
583 
584 
585  // public interfaces not inherited from XalanCDATASection...
586 
587  void
588  setParent(XalanSourceTreeElement* theParent);
589 
590  void
591  setParent(XalanSourceTreeDocumentFragment* theParent);
592 
593  void
594  setPreviousSibling(XalanSourceTreeComment* thePreviousSibling);
595 
596  void
597  setPreviousSibling(XalanSourceTreeElement* thePreviousSibling);
598 
599  void
600  setPreviousSibling(XalanSourceTreeProcessingInstruction* thePreviousSibling);
601 
602  void
603  setPreviousSibling(XalanSourceTreeText* thePreviousSibling);
604 
605  void
606  appendSiblingNode(XalanSourceTreeComment* theSibling);
607 
608  void
609  appendSiblingNode(XalanSourceTreeElement* theSibling);
610 
611  void
612  appendSiblingNode(XalanSourceTreeProcessingInstruction* theSibling);
613 
614  void
615  appendSiblingNode(XalanSourceTreeText* theSibling);
616 
617  void
618  setIndex(IndexType theIndex)
619  {
620  m_index = theIndex;
621  }
622 
623 protected:
624 
626  const XalanSourceTreeText& theSource,
627  bool /* deep */);
628 
629 private:
630 
631  // Not implemented...
633  operator=(const XalanSourceTreeText& theSource);
634 
635  bool
636  operator==(const XalanSourceTreeText& theRHS) const;
637 
638 
639  // Data members...
640  const XalanDOMString& m_data;
641 
642  XalanNode* m_parentNode;
643 
644  XalanNode* m_previousSibling;
645 
646  XalanNode* m_nextSibling;
647 
648  IndexType m_index;
649 
650  static const XalanDOMString& s_nameString;
651 };
652 
653 
654 
655 XALAN_CPP_NAMESPACE_END
656 
657 
658 
659 #endif // !defined(XALANSOURCETREETEXT_HEADER_GUARD_1357924680)

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