NodeImpl.java
4.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.dom;
import com.adobe.xfa.dom.DocumentImpl;
import com.adobe.xfa.dom.ParentNode;
import org.w3c.dom.*;
abstract class NodeImpl
implements Node {
static final String COMMENT_NODE_NAME = "#comment";
static final String DOCUMENT_NODE_NAME = "#document";
static final String TEXT_NODE_NAME = "#text";
static final boolean DO_DEBUG = false;
private final ParentNode mParent;
private NodeImpl mPrev;
private NodeImpl mNext;
private final DocumentImpl mDocument;
final int mNodeID;
static int gNodeIDCounter = 0;
NodeImpl(ParentNode parent) {
this.mParent = parent;
DocumentImpl document = null;
if (parent != null) {
document = parent instanceof DocumentImpl ? (DocumentImpl)parent : parent.getDocument();
}
this.mDocument = document;
this.mNodeID = ++gNodeIDCounter;
}
@Override
public Node appendChild(Node newChild) throws DOMException {
throw new DOMException(7, "");
}
@Override
public Node cloneNode(boolean deep) {
throw new DOMException(9, "");
}
@Override
public short compareDocumentPosition(Node other) throws DOMException {
return 32;
}
@Override
public NamedNodeMap getAttributes() {
return null;
}
@Override
public String getBaseURI() {
return null;
}
@Override
public NodeList getChildNodes() {
return null;
}
@Override
public Object getFeature(String feature, String version) {
return null;
}
@Override
public Node getFirstChild() {
return null;
}
@Override
public Node getLastChild() {
return null;
}
@Override
public String getLocalName() {
return null;
}
@Override
public String getNamespaceURI() {
return null;
}
@Override
public Node getNextSibling() {
return null;
}
@Override
public String getNodeValue() throws DOMException {
return null;
}
@Override
public Document getOwnerDocument() {
return this.mDocument;
}
@Override
public Node getParentNode() {
return this.mParent;
}
@Override
public String getPrefix() {
return null;
}
@Override
public Node getPreviousSibling() {
return null;
}
@Override
public String getTextContent() throws DOMException {
return null;
}
@Override
public Object getUserData(String key) {
return null;
}
@Override
public boolean hasAttributes() {
return false;
}
@Override
public boolean hasChildNodes() {
return false;
}
@Override
public Node insertBefore(Node newChild, Node refChild) throws DOMException {
throw new DOMException(3, "");
}
@Override
public boolean isDefaultNamespace(String namespaceURI) {
return this.mParent == null ? false : this.mParent.isDefaultNamespace(namespaceURI);
}
@Override
public boolean isSupported(String feature, String version) {
return false;
}
@Override
public String lookupNamespaceURI(String prefix) {
return this.mParent == null ? null : this.mParent.lookupNamespaceURI(prefix);
}
@Override
public String lookupPrefix(String namespaceURI) {
return this.mParent == null ? null : this.mParent.lookupPrefix(namespaceURI);
}
@Override
public void normalize() {
}
@Override
public Node removeChild(Node oldCcild) throws DOMException {
return null;
}
@Override
public Node replaceChild(Node oldChild, Node newChild) throws DOMException {
throw new DOMException(3, "");
}
@Override
public void setNodeValue(String newValue) throws DOMException {
}
@Override
public void setPrefix(String prefix) throws DOMException {
}
@Override
public void setTextContent(String textContent) throws DOMException {
}
@Override
public Object setUserData(String key, Object data, UserDataHandler handler) {
return null;
}
final DocumentImpl getDocument() {
return this.mDocument == null && this instanceof DocumentImpl ? (DocumentImpl)this : this.mDocument;
}
final ParentNode getParent() {
return this.mParent;
}
final NodeImpl getNext() {
return this.mNext;
}
final void setNext(NodeImpl newNext) {
this.mNext = newNext;
}
final NodeImpl getPrev() {
return this.mPrev;
}
final void setPrev(NodeImpl newPrev) {
this.mPrev = newPrev;
}
}