1 | /** | | 1 | /** |
2 | * @return a string describing this object | | 2 | * @return a string describing this object |
3 | */ | | 3 | */ |
4 | public String toString() { | | 4 | public String toString() { |
5 | StringBuffer buf = new StringBuffer("{presentselector targetdir: "); | | 5 | StringBuffer buf = new StringBuffer("{containsselector text: "); |
6 | if (targetdir == null) { | | 6 | buf.append('"').append(contains).append('"'); |
7 | buf.append("NOT YET SET"); | | 7 | buf.append(" casesensitive: "); |
8 | } else { | | 8 | buf.append(casesensitive ? "true" : "false"); |
9 | buf.append(targetdir.getName()); | | 9 | buf.append(" ignorewhitespace: "); |
10 | } | | 10 | buf.append(ignorewhitespace ? "true" : "false"); |
11 | buf.append(" present: "); | | 11 | buf.append("}"); |
12 | if (destmustexist) { | | 12 | return buf.toString(); |
13 | buf.append("both"); | | 13 | } |
14 | } else { | | | |
15 | buf.append("srconly"); | | | |
16 | } | | | |
17 | if (map != null) { | | | |
18 | buf.append(map.toString()); | | | |
19 | } else if (mapperElement != null) { | | | |
20 | buf.append(mapperElement.toString()); | | | |
21 | } | | | |
22 | buf.append("}"); | | | |
23 | return buf.toString(); | | | |
24 | } | | | |