1 | void appendName(String name) {↵ | | 1 | void appendRegex(String regex) {↵
|
2 | PropertyRef r = new PropertyRef();↵ | | 2 | PropertyRef r = new PropertyRef();↵
|
3 | r.setName(name);↵ | | 3 | r.setRegex(regex);↵
|
4 | addPropertyref(r);↵ | | 4 | addPropertyref(r);↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | /**↵
|
7 | * Allow properties whose names match a regex in the set.↵ | | 7 | * Allow properties whose names start with a prefix in the set.↵
|
8 | * @param regex the regular expression to use.↵ | | 8 | * @param prefix the prefix to use.↵
|
9 | */↵ | | 9 | */↵
|
10 | public void appendRegex(String regex) {↵ | | 10 | public void appendPrefix(String prefix) {↵
|
11 | PropertyRef r = new PropertyRef();↵ | | 11 | PropertyRef r = new PropertyRef();↵
|
12 | r.setRegex(regex);↵ | | 12 | r.setPrefix(prefix);↵
|
13 | addPropertyref(r);↵ | | 13 | addPropertyref(r);↵
|
14 | | | 14 |
|