Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanSourceTreeDocumentFragment.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(XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680)
17 #define XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680
18 
19 
20 
22 
23 
25 
26 
28 
29 
30 
31 #if !defined(XALAN_NO_COVARIANT_RETURN_TYPE)
33 #endif
34 
35 
36 
37 XALAN_CPP_NAMESPACE_BEGIN
38 
39 
40 
46 
47 
48 
50 {
51 public:
52 
54  XalanSourceTreeDocument& theOwnerDocument);
55 
57  MemoryManagerType& theManager,
58  const XalanSourceTreeDocumentFragment& theSource,
59  bool deep = false);
60 
61  virtual
63 
64  // These interfaces are inherited from XalanNode...
65 
66  virtual const XalanDOMString&
67  getNodeName() const;
68 
69  virtual const XalanDOMString&
70  getNodeValue() const;
71 
72  virtual NodeType
73  getNodeType() const;
74 
75  virtual XalanNode*
76  getParentNode() const;
77 
78  virtual const XalanNodeList*
79  getChildNodes() const;
80 
81  virtual XalanNode*
82  getFirstChild() const;
83 
84  virtual XalanNode*
85  getLastChild() const;
86 
87  virtual XalanNode*
88  getPreviousSibling() const;
89 
90  virtual XalanNode*
91  getNextSibling() const;
92 
93  virtual const XalanNamedNodeMap*
94  getAttributes() const;
95 
96 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
97  virtual XalanDocument*
98 #else
100 #endif
101  getOwnerDocument() const;
102 
103 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
104  virtual XalanNode*
105 #else
107 #endif
108  cloneNode(bool deep) const;
109 
110  virtual XalanNode*
111  insertBefore(
112  XalanNode* newChild,
113  XalanNode* refChild);
114 
115  virtual XalanNode*
116  replaceChild(
117  XalanNode* newChild,
118  XalanNode* oldChild);
119 
120  virtual XalanNode*
121  removeChild(XalanNode* oldChild);
122 
123  virtual XalanNode*
124  appendChild(XalanNode* newChild);
125 
126  virtual bool
127  hasChildNodes() const;
128 
129  virtual void
130  setNodeValue(const XalanDOMString& nodeValue);
131 
132  virtual void
133  normalize();
134 
135  virtual bool
136  isSupported(
137  const XalanDOMString& feature,
138  const XalanDOMString& version) const;
139 
140  virtual const XalanDOMString&
141  getNamespaceURI() const;
142 
143  virtual const XalanDOMString&
144  getPrefix() const;
145 
146  virtual const XalanDOMString&
147  getLocalName() const;
148 
149  virtual void
150  setPrefix(const XalanDOMString& prefix);
151 
152  virtual bool
153  isIndexed() const;
154 
155  virtual IndexType
156  getIndex() const;
157 
158  // These interfaces are new...
159 
160  void
161  appendChildNode(XalanSourceTreeComment* theChild);
162 
163  void
164  appendChildNode(XalanSourceTreeElement* theChild);
165 
166  void
167  appendChildNode(XalanSourceTreeProcessingInstruction* theChild);
168 
169  void
170  appendChildNode(XalanSourceTreeText* theChild);
171 
172  void
173  clearChildren();
174 
176  clone(bool deep) const;
177 
178 
179 protected:
180 
182  operator=(const XalanSourceTreeDocumentFragment& theSource);
183 
184  bool
185  operator==(const XalanSourceTreeDocumentFragment& theRHS) const;
186 
187 private:
188  MemoryManagerType& m_manager;
189 
190  XalanSourceTreeDocument* const m_ownerDocument;
191 
192  XalanNode* m_firstChild;
193 };
194 
195 
196 
197 XALAN_CPP_NAMESPACE_END
198 
199 
200 
201 #endif // !defined(XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680)
Definition: XalanNode.hpp:44
Definition: XalanNodeList.hpp:42
virtual XalanNode * getParentNode() const =0
Gets the parent of this node.
virtual void normalize()=0
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes...
virtual NodeType getNodeType() const =0
An enum value representing the type of the underlying object.
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
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 XalanNode * appendChild(XalanNode *newChild)=0
Adds the node newChild to the end of the list of children of this node.
virtual IndexType getIndex() const =0
Get the node's index.
virtual XalanDocumentFragment * cloneNode(bool deep) const =0
Returns a duplicate of this node.
virtual const XalanDOMString & getNodeValue() const =0
Gets the value of this node, depending on its type.
Definition: XalanDocumentFragment.hpp:38
virtual void setNodeValue(const XalanDOMString &nodeValue)=0
Sets the value of the node.
virtual const XalanDOMString & getPrefix() const =0
Get the namespace prefix of this node, or null if it is unspecified.
virtual XalanDocument * getOwnerDocument() const =0
Gets the Document object associated with this node.
NodeType
Definition: XalanNode.hpp:53
virtual bool hasChildNodes() const =0
This is a convenience method to allow easy determination of whether a node has any children...
virtual XalanNode * removeChild(XalanNode *oldChild)=0
Removes the child node indicated by oldChild from the list of children, and returns it...
virtual const XalanDOMString & getNodeName() const =0
virtual XalanNode * insertBefore(XalanNode *newChild, XalanNode *refChild)=0
Inserts the node newChild before the existing child node refChild.
virtual const XalanDOMString & getNamespaceURI() const =0
Get the namespace URI of this node, or null if it is unspecified.
XalanDocumentFragment & operator=(const XalanDocumentFragment &theSource)
virtual XalanNode * getLastChild() const =0
Gets the last child of this 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...
Definition: XalanSourceTreeDocumentFragment.hpp:49
virtual void setPrefix(const XalanDOMString &prefix)=0
Set the namespace prefix of this node.
#define XALAN_XALANSOURCETREE_EXPORT
Definition: XalanSourceTreeDefinitions.hpp:33
virtual XalanNode * getPreviousSibling() const =0
Gets the node immediately preceding this node.
Definition: XalanNamedNodeMap.hpp:42
Definition: XalanSourceTreeText.hpp:44
virtual const XalanNodeList * getChildNodes() const =0
Gets a NodeList that contains all children of this node.
bool operator==(const XalanDocumentFragment &theRHS) const
Definition: XalanDocument.hpp:51
virtual bool isIndexed() const =0
Determine if the document is node-order indexed.
Definition: XalanDOMString.hpp:42
unsigned long IndexType
Definition: XalanNode.hpp:70
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: XalanSourceTreeDocument.hpp:73
virtual const XalanNamedNodeMap * getAttributes() const =0
Gets a NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise...
Definition: XalanSourceTreeElement.hpp:44
virtual XalanNode * getNextSibling() const =0
Gets the node immediately following this node.
Definition: XalanSourceTreeProcessingInstruction.hpp:45
Definition: XalanSourceTreeComment.hpp:53

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