|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| package net.sf.sojo.navigation; |
|
17 |
| |
|
18 |
| public class PathAction { |
|
19 |
| |
|
20 |
| public static final int ACTION_TYPE_SIMPLE = 0; |
|
21 |
| public static final int ACTION_TYPE_INDEX = 1; |
|
22 |
| public static final int ACTION_TYPE_KEY = 2; |
|
23 |
| |
|
24 |
| private int type = ACTION_TYPE_SIMPLE; |
|
25 |
| private String path = null; |
|
26 |
| private String property = null; |
|
27 |
| private String key = null; |
|
28 |
| private int index = -1; |
|
29 |
| |
|
30 |
| |
|
31 |
303
| public PathAction() {}
|
|
32 |
2
| public PathAction(int pvType) {
|
|
33 |
2
| setType(pvType);
|
|
34 |
| } |
|
35 |
| |
|
36 |
18
| public String getPath() { return path; }
|
|
37 |
300
| public void setPath(String pvPath) { path = pvPath; }
|
|
38 |
| |
|
39 |
274
| public String getProperty() { return property; }
|
|
40 |
205
| public void setProperty(String pvProperty) { property = pvProperty; }
|
|
41 |
| |
|
42 |
68
| public String getKey() { return key; }
|
|
43 |
90
| public void setKey(String pvKey) { key = pvKey; }
|
|
44 |
| |
|
45 |
90
| public int getIndex() { return index; }
|
|
46 |
102
| public void setIndex(int pvIndex) { index = pvIndex; }
|
|
47 |
| |
|
48 |
214
| public int getType() { return type; }
|
|
49 |
316
| public void setType(int pvType) { type = pvType; }
|
|
50 |
| |
|
51 |
| public String toString() { |
|
52 |
| return "path: " + getPath() + " - property: " + getProperty() |
|
53 |
| + " - index/key: " + getIndex() + "/" + getKey() |
|
54 |
| + " - type: " + getType() + " -- " + super.toString(); |
|
55 |
| } |
|
56 |
| |
|
57 |
| |
|
58 |
| |
|
59 |
| |
|
60 |
| } |