Manifest.java
1.58 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa;
import com.adobe.xfa.*;
public class Manifest
extends ProtoableNode {
public Manifest(Element parent, Node prevSibling) {
super(parent, prevSibling, null, "manifest", "manifest", null, XFA.MANIFESTTAG, "manifest");
}
public NodeList doEvaluate() {
ArrayNodeList ret = new ArrayNodeList();
Node child = this.getFirstXFAChild();
int i = 0;
while (child != null) {
NodeList items = this.getItems(i);
int nItems = items.length();
for (int j = 0; j < nItems; ++j) {
Node oItem = (Node)items.item(j);
assert (oItem instanceof Element);
if (!(oItem instanceof Element)) continue;
Element oElement = (Element)oItem;
ret.append(oElement);
}
child = child.getNextXFASibling();
++i;
}
return ret;
}
NodeList getItems(int nIndex) {
Node oChild = this.getXFAChild(nIndex);
if (oChild.getClassTag() != XFA.REFTAG) {
return new ArrayNodeList();
}
TextNode oRef = (TextNode)oChild.getProperty(XFA.TEXTNODETAG, 0);
String sRef = oRef.getValue();
return this.getXFAParent().resolveNodes(sRef, true, false, false);
}
@Override
public ScriptTable getScriptTable() {
return ManifestScript.getScriptTable();
}
public boolean doExecValidate() {
return false;
}
public void doExecCalculate() {
}
public void doExecInitialize() {
}
}