Xalan-C++ API Reference  1.12.0
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 
34 
35 
36 
37 namespace XALAN_CPP_NAMESPACE {
38 
39 
40 
41 class XalanSourceTreeComment;
42 class XalanSourceTreeDocument;
43 class XalanSourceTreeElement;
44 class XalanSourceTreeProcessingInstruction;
45 class XalanSourceTreeText;
46 
47 
48 
50 {
51 public:
52 
53  XalanSourceTreeDocumentFragment(MemoryManager& theManager,
54  XalanSourceTreeDocument& theOwnerDocument);
55 
56  /*
57  XalanSourceTreeDocumentFragment(
58  MemoryManager& theManager,
59  const XalanSourceTreeDocumentFragment& theSource,
60  bool deep = false);
61  */
62  virtual
64 
65  // These interfaces are inherited from XalanNode...
66 
67  virtual const XalanDOMString&
68  getNodeName() const;
69 
70  virtual const XalanDOMString&
71  getNodeValue() const;
72 
73  virtual NodeType
74  getNodeType() const;
75 
76  virtual XalanNode*
77  getParentNode() const;
78 
79  virtual const XalanNodeList*
80  getChildNodes() const;
81 
82  virtual XalanNode*
83  getFirstChild() const;
84 
85  virtual XalanNode*
86  getLastChild() const;
87 
88  virtual XalanNode*
89  getPreviousSibling() const;
90 
91  virtual XalanNode*
92  getNextSibling() const;
93 
94  virtual const XalanNamedNodeMap*
95  getAttributes() const;
96 
98  getOwnerDocument() const;
99 
100  virtual const XalanDOMString&
101  getNamespaceURI() const;
102 
103  virtual const XalanDOMString&
104  getPrefix() const;
105 
106  virtual const XalanDOMString&
107  getLocalName() const;
108 
109  virtual bool
110  isIndexed() const;
111 
112  virtual IndexType
113  getIndex() const;
114 
115  // These interfaces are new...
116 
117  void
118  appendChildNode(XalanSourceTreeComment* theChild);
119 
120  void
121  appendChildNode(XalanSourceTreeElement* theChild);
122 
123  void
124  appendChildNode(XalanSourceTreeProcessingInstruction* theChild);
125 
126  void
127  appendChildNode(XalanSourceTreeText* theChild);
128 
129  void
130  clearChildren();
131 
132 protected:
133 
135  operator=(const XalanSourceTreeDocumentFragment& theSource);
136 
137  bool
138  operator==(const XalanSourceTreeDocumentFragment& theRHS) const;
139 
140 private:
141  MemoryManager& m_manager;
142 
143  XalanSourceTreeDocument* const m_ownerDocument;
144 
145  XalanNode* m_firstChild;
146 };
147 
148 
149 
150 }
151 
152 
153 
154 #endif // !defined(XALANSOURCETREEDOCUMENTFRAGMENT_HEADER_GUARD_1357924680)
xalanc::XalanSourceTreeDocumentFragment
Definition: XalanSourceTreeDocumentFragment.hpp:49
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XalanNode
Definition: XalanNode.hpp:38
xalanc::XalanNode::NodeType
NodeType
Definition: XalanNode.hpp:47
XalanSourceTreeDocument.hpp
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1118
xalanc::XalanNode::IndexType
unsigned long IndexType
Definition: XalanNode.hpp:64
xalanc::XalanSourceTreeComment
Definition: XalanSourceTreeComment.hpp:47
xalanc::XalanNodeList
Definition: XalanNodeList.hpp:36
XalanSourceTreeDefinitions.hpp
xalanc::XalanNamedNodeMap
Definition: XalanNamedNodeMap.hpp:36
xalanc::XalanSourceTreeText
Definition: XalanSourceTreeText.hpp:46
XALAN_XALANSOURCETREE_EXPORT
#define XALAN_XALANSOURCETREE_EXPORT
Definition: XalanSourceTreeDefinitions.hpp:35
xalanc::XalanSourceTreeElement
Definition: XalanSourceTreeElement.hpp:46
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45
xalanc::XalanSourceTreeDocument
Definition: XalanSourceTreeDocument.hpp:78
XalanDocumentFragment.hpp
xalanc::XalanDocumentFragment
Definition: XalanDocumentFragment.hpp:32
XalanMemMgrAutoPtr.hpp
xalanc::XalanSourceTreeProcessingInstruction
Definition: XalanSourceTreeProcessingInstruction.hpp:47