Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanSourceTreeAttr.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(XALANSOURCETREEATTR_HEADER_GUARD_1357924680)
17 #define XALANSOURCETREEATTR_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
24 
26 
27 
28 
30 
31 
32 
33 XALAN_CPP_NAMESPACE_BEGIN
34 
35 
36 
39 
40 
41 
42 /*
43  * <meta name="usage" content="experimental"/>
44  *
45  * Base class for the Xalan source tree Attr interface.
46  *
47  * This class is experimental and subject to change!!
48  */
49 
51 {
52 public:
53 
64  const XalanDOMString& theName,
65  const XalanDOMString& theValue,
66  XalanSourceTreeElement* theOwnerElement = 0,
67  IndexType theIndex = 0);
68 
69  virtual
71 
72 
73  // These interfaces are inherited from XalanNode...
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
193  virtual XalanSourceTreeAttr*
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 
411  virtual bool
412  isIndexed() const;
413 
420  virtual IndexType
421  getIndex() const;
422 
424 
425  // These interfaces are inherited from XalanAttr...
426 
433  virtual const XalanDOMString&
434  getName() const;
435 
443  virtual bool
444  getSpecified() const;
445 
452  virtual const XalanDOMString&
453  getValue() const;
454 
456 
458 
465  virtual void
466  setValue(const XalanDOMString& value);
467 
469 
476  virtual XalanElement*
477  getOwnerElement() const;
479 
480 
481  // public interfaces not inherited from XalanAttr...
482 
483  void
485  {
486  m_ownerElement = theElement;
487  }
488 
489  void
490  setIndex(IndexType theIndex)
491  {
492  m_index = theIndex;
493  }
494 
495 protected:
496 
498  const XalanSourceTreeAttr& theSource,
499  bool deep = false);
500 
501 private:
502 
503  // Not defined...
505  operator=(const XalanSourceTreeAttr& theSource);
506 
507  bool
508  operator==(const XalanSourceTreeAttr& theRHS) const;
509 
510 
511  // Data members...
512  const XalanDOMString& m_name;
513 
514  const XalanDOMString& m_value;
515 
516  XalanSourceTreeElement* m_ownerElement;
517 
518  IndexType m_index;
519 };
520 
521 
522 
523 XALAN_CPP_NAMESPACE_END
524 
525 
526 
527 #endif // !defined(XALANSOURCETREEATTR_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