1 | void startDocument()↵ | | 1 | void startDocument()↵
|
2 | {↵ | | 2 | {↵
|
3 | try↵ | | 3 | try↵
|
4 | {↵ | | 4 | {↵
|
5 | pushElement(null);↵ | | 5 | pushElement(null);↵
|
6 | }↵ | | 6 | }↵
|
7 | catch (Exception e)↵ | | 7 | catch (Exception e)↵
|
8 | {↵ | | 8 | {↵
|
9 | e.printStackTrace();↵ | | 9 | e.printStackTrace();↵
|
10 | }↵ | | 10 | }↵
|
11 | } //}}}↵ | | 11 | } //}}}↵
|
|
12 | //{{{ endDocument() method↵ | | |
|
13 | public void endDocument()↵ | | |
|
14 | {↵ | | |
|
15 | mirrors.finished();↵ | | |
|
16 | } //}}}↵ | | |
|
|
17 | //{{{ Private members↵ | | 12 | //{{{ Private members↵
|
18 | ↵ | | |
|
19 | //{{{ Variables↵ | | 13 | //{{{ Instance variables↵
|
20 | private String id;↵ | | 14 | private String path;↵
|
21 | private String description;↵ | | 15 | private ActionSet actionSet;↵
|
|
22 | private String location;↵ | | 16 | private String actionName;↵
|
23 | private String country;↵ | | 17 | private String code;↵
|
24 | private String continent;↵ | | 18 | private String isSelected;↵
|
25 | ↵ | | |
|
26 | private MirrorList mirr↵ | | 19 | private boolean noRepeat;↵
|
27 | ors;↵ | | 20 | private boolean noRecord;↵
|
28 | private MirrorList.Mirror mirror;↵ | | 21 | private boolean noRememberLast;↵
|
29 | ↵ | | |
|
30 | private Stack stateStack;↵ | | 22 | private Stack stateStack;↵
|
31 | private String path;↵ | | 23 | ↵
|
32 | //}}}↵ | | |
|
33 | ↵ | | 24 | //}}}↵
|
|
| | | 25 | //{{{ pushElement() method↵
|
34 | private String pushElement(String name)↵ | | 26 | private String pushElement(String name)↵
|
35 | {↵ | | 27 | {↵
|
36 | name = (name == null) ? null : name.intern();↵ | | 28 | name = (name == null) ? null : name.intern();↵
|
|
37 | stateStack.push(name);↵ | | 29 | stateStack.push(name);↵
|
|
38 | return name;↵ | | 30 | return name;↵
|
39 | }↵ | | 31 | }↵
|
| | | 32 | //}}}↵
|
|
| | | 33 | //{{{ peekElement() method↵
|
40 | private String peekElement()↵ | | 34 | private String peekElement()↵
|
41 | {↵ | | 35 | {↵
|
42 | return (String) stateStack.peek();↵ | | 36 | return (String) stateStack.peek();↵
|
43 | }↵ | | 37 | }↵
|
| | | 38 | //}}}↵
|
|
| | | 39 | //{{{ popElement() method↵
|
44 | private String popElement()↵ | | 40 | private String popElement()↵
|
45 | {↵ | | 41 | {↵
|
46 | return (String) stateStack.pop();↵ | | 42 | return (String) stateStack.pop();↵
|
47 | } | | 43 | }
|