2 |
|
|
3 |
public class ResetElement extends Element |
public class ResetElement extends Element |
4 |
{ |
{ |
5 |
public static final int NO_LOGIC = 0; |
public static final int BEFORE_IDENTICAL = 4; |
6 |
|
public static final int BEFORE_PRIMARY = 1; |
7 |
|
public static final int BEFORE_SECONDARY = 2; |
8 |
|
public static final int BEFORE_TERTIARY = 3; |
9 |
public static final int FIRST_PRIMARY_IGNORABLE = 1; |
public static final int FIRST_PRIMARY_IGNORABLE = 1; |
10 |
public static final int FIRST_SECONDARY_IGNORABLE = 2; |
public static final int FIRST_SECONDARY_IGNORABLE = 2; |
11 |
public static final int FIRST_TERTIARY_IGNORABLE = 3; |
public static final int FIRST_TERTIARY_IGNORABLE = 3; |
12 |
|
public static final int LAST_NON_IGNORABLE = 8; |
13 |
public static final int LAST_PRIMARY_IGNORABLE = 4; |
public static final int LAST_PRIMARY_IGNORABLE = 4; |
14 |
public static final int LAST_SECONDARY_IGNORABLE = 5; |
public static final int LAST_SECONDARY_IGNORABLE = 5; |
15 |
public static final int LAST_TERTIARY_IGNORABLE = 6; |
public static final int LAST_TERTIARY_IGNORABLE = 6; |
16 |
public static final int LAST_VARIABLE = 7; |
public static final int LAST_VARIABLE = 7; |
|
public static final int LAST_NON_IGNORABLE = 8; |
|
|
|
|
17 |
public static final int NO_BEFORE = 0; |
public static final int NO_BEFORE = 0; |
18 |
public static final int BEFORE_PRIMARY = 1; |
public static final int NO_LOGIC = 0; |
|
public static final int BEFORE_SECONDARY = 2; |
|
|
public static final int BEFORE_TERTIARY = 3; |
|
|
public static final int BEFORE_IDENTICAL = 4; |
|
|
|
|
19 |
public int before; |
public int before; |
20 |
public String data; |
public String data; |
21 |
public int logicalReset; |
public int logicalReset; |
23 |
public ResetElement(Parser p, Element parent, String name) |
public ResetElement(Parser p, Element parent, String name) |
24 |
{ |
{ |
25 |
super(p, parent, name); |
super(p, parent, name); |
|
|
|
26 |
logicalReset = NO_LOGIC; |
logicalReset = NO_LOGIC; |
27 |
} |
} |
28 |
|
|
29 |
public void addChild(Element e) |
public void addChild(Element e) |
30 |
{ |
{ |
31 |
if (e.qualifiedName.equals("first_primary_ignorable")) |
if (e.qualifiedName.equals("first_primary_ignorable")) |
44 |
logicalReset = LAST_VARIABLE; |
logicalReset = LAST_VARIABLE; |
45 |
else if (e.qualifiedName.equals("last_non_ignorable")) |
else if (e.qualifiedName.equals("last_non_ignorable")) |
46 |
logicalReset = LAST_NON_IGNORABLE; |
logicalReset = LAST_NON_IGNORABLE; |
|
|
|
47 |
super.addChild(e); |
super.addChild(e); |
48 |
} |
} |
49 |
} |
} |