Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


XalanSourceTreeDocumentFragment.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #if !defined(XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680)
19 #define XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680
20 
21 
22 
24 
25 
27 
28 
30 
31 
32 
33 #if !defined(XALAN_NO_COVARIANT_RETURN_TYPE)
35 #endif
36 
37 
38 
39 XALAN_CPP_NAMESPACE_BEGIN
40 
41 
42 
48 
49 
50 
52 {
53 public:
54 
55  XalanSourceTreeDocumentFragment(MemoryManager& theManager,
56  XalanSourceTreeDocument& theOwnerDocument);
57 
58  /*
59  XalanSourceTreeDocumentFragment(
60  MemoryManager& theManager,
61  const XalanSourceTreeDocumentFragment& theSource,
62  bool deep = false);
63  */
64  virtual
66 
67  // These interfaces are inherited from XalanNode...
68 
69  virtual const XalanDOMString&
70  getNodeName() const;
71 
72  virtual const XalanDOMString&
73  getNodeValue() const;
74 
75  virtual NodeType
76  getNodeType() const;
77 
78  virtual XalanNode*
79  getParentNode() const;
80 
81  virtual const XalanNodeList*
82  getChildNodes() const;
83 
84  virtual XalanNode*
85  getFirstChild() const;
86 
87  virtual XalanNode*
88  getLastChild() const;
89 
90  virtual XalanNode*
91  getPreviousSibling() const;
92 
93  virtual XalanNode*
94  getNextSibling() const;
95 
96  virtual const XalanNamedNodeMap*
97  getAttributes() const;
98 
99 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
100  virtual XalanDocument*
101 #else
102  virtual XalanSourceTreeDocument*
103 #endif
104  getOwnerDocument() const;
105 
106  virtual const XalanDOMString&
107  getNamespaceURI() const;
108 
109  virtual const XalanDOMString&
110  getPrefix() const;
111 
112  virtual const XalanDOMString&
113  getLocalName() const;
114 
115  virtual bool
116  isIndexed() const;
117 
118  virtual IndexType
119  getIndex() const;
120 
121  // These interfaces are new...
122 
123  void
124  appendChildNode(XalanSourceTreeComment* theChild);
125 
126  void
127  appendChildNode(XalanSourceTreeElement* theChild);
128 
129  void
130  appendChildNode(XalanSourceTreeProcessingInstruction* theChild);
131 
132  void
133  appendChildNode(XalanSourceTreeText* theChild);
134 
135  void
136  clearChildren();
137 
138 protected:
139 
141  operator=(const XalanSourceTreeDocumentFragment& theSource);
142 
143  bool
144  operator==(const XalanSourceTreeDocumentFragment& theRHS) const;
145 
146 private:
147  MemoryManager& m_manager;
148 
149  XalanSourceTreeDocument* const m_ownerDocument;
150 
151  XalanNode* m_firstChild;
152 };
153 
154 
155 
156 XALAN_CPP_NAMESPACE_END
157 
158 
159 
160 #endif // !defined(XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680)
virtual XalanNode * getParentNode() const =0
Gets the parent of this node.
virtual NodeType getNodeType() const =0
An enum value representing the type of the underlying object.
virtual XalanNode * getFirstChild() const =0
Gets the first child of this node.
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
virtual IndexType getIndex() const =0
Get the node's index.
virtual const XalanDOMString & getNodeValue() const =0
Gets the value of this node, depending on its type.
virtual const XalanDOMString & getPrefix() const =0
Get the namespace prefix of this node.
virtual XalanDocument * getOwnerDocument() const =0
Gets the XalanDocument object associated with this node.
bool operator==(const XalanDocumentFragment &theRHS) const
virtual const XalanDOMString & getNodeName() const =0
Gets the name of this node, depending on its type.
virtual const XalanDOMString & getNamespaceURI() const =0
Get the namespace URI of this node.
XalanDocumentFragment & operator=(const XalanDocumentFragment &theSource)
virtual XalanNode * getLastChild() const =0
Gets the last child of this node.
#define XALAN_XALANSOURCETREE_EXPORT
virtual XalanNode * getPreviousSibling() const =0
Gets the node immediately preceding this node.
virtual const XalanNodeList * getChildNodes() const =0
Gets a XalanNodeList that contains all children of this node.
virtual bool isIndexed() const =0
Determine if the document is node-order indexed.
unsigned long IndexType
Definition: XalanNode.hpp:64
virtual const XalanNamedNodeMap * getAttributes() const =0
Gets a XalanNamedNodeMap containing the attributes of this node (if it is an XalanElement) or a null ...
virtual XalanNode * getNextSibling() const =0
Gets the node immediately following this node.

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo