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
37namespace XALAN_CPP_NAMESPACE {
38
39
40
41class XalanSourceTreeComment;
42class XalanSourceTreeDocument;
43class XalanSourceTreeElement;
44class XalanSourceTreeProcessingInstruction;
45class XalanSourceTreeText;
46
47
48
50{
51public:
52
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*
78
79 virtual const XalanNodeList*
81
82 virtual XalanNode*
84
85 virtual XalanNode*
86 getLastChild() const;
87
88 virtual XalanNode*
90
91 virtual XalanNode*
93
94 virtual const XalanNamedNodeMap*
96
99
100 virtual const XalanDOMString&
102
103 virtual const XalanDOMString&
104 getPrefix() const;
105
106 virtual const XalanDOMString&
108
109 virtual bool
110 isIndexed() const;
111
112 virtual IndexType
113 getIndex() const;
114
115 // These interfaces are new...
116
117 void
119
120 void
122
123 void
125
126 void
128
129 void
131
132protected:
133
136
137 bool
139
140private:
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)
#define XALAN_XALANSOURCETREE_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
virtual IndexType getIndex() const
Get the node's index.
virtual const XalanDOMString & getNodeName() const
Gets the name of this node, depending on its type.
virtual const XalanNodeList * getChildNodes() const
Gets a XalanNodeList that contains all children of this node.
virtual XalanNode * getFirstChild() const
Gets the first child of this node.
XalanSourceTreeDocumentFragment & operator=(const XalanSourceTreeDocumentFragment &theSource)
bool operator==(const XalanSourceTreeDocumentFragment &theRHS) const
virtual XalanNode * getPreviousSibling() const
Gets the node immediately preceding this node.
virtual XalanNode * getParentNode() const
Gets the parent of this node.
XalanSourceTreeDocumentFragment(MemoryManager &theManager, XalanSourceTreeDocument &theOwnerDocument)
virtual XalanNode * getNextSibling() const
Gets the node immediately following this node.
virtual const XalanNamedNodeMap * getAttributes() const
Gets a XalanNamedNodeMap containing the attributes of this node (if it is an XalanElement) or a null ...
virtual XalanSourceTreeDocument * getOwnerDocument() const
Gets the XalanDocument object associated with this node.
void appendChildNode(XalanSourceTreeElement *theChild)
virtual bool isIndexed() const
Determine if the document is node-order indexed.
virtual const XalanDOMString & getNodeValue() const
Gets the value of this node, depending on its type.
virtual XalanNode * getLastChild() const
Gets the last child of this node.
void appendChildNode(XalanSourceTreeProcessingInstruction *theChild)
virtual const XalanDOMString & getLocalName() const
Returns the local part of the qualified name of this node.
virtual const XalanDOMString & getPrefix() const
Get the namespace prefix of this node.
void appendChildNode(XalanSourceTreeText *theChild)
virtual NodeType getNodeType() const
An enum value representing the type of the underlying object.
virtual const XalanDOMString & getNamespaceURI() const
Get the namespace URI of this node.
void appendChildNode(XalanSourceTreeComment *theChild)