1 | public void setFormat(FormatAttribute ea) {↵ | | 1 | public void setFormat(FormatAttribute ea) {↵
|
2 | format = ea.getValue();↵ | | 2 | format = ea.getValue();↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * A enumerated type for the format attribute.↵ | | 5 | * A class for the enumerated attribute format,↵
|
6 | * The values are "xml" and "text".↵ | | 6 | * values are xml and text.↵
|
| | | 7 | * @see EnumeratedAttribute↵
|
7 | */↵ | | 8 | */↵
|
8 | public static class FormatAttribute extends EnumeratedAttribute {↵ | | 9 | public static class FormatAttribute extends EnumeratedAttribute {↵
|
9 | private String [] formats = new String[]{"xml", "text"};↵ | | 10 | private String [] formats = new String[]{"xml", "text"};↵
|
|
10 | /**↵ | | 11 | /**↵
|
11 | * @see EnumeratedAttribute#getValues()↵ | | 12 | * @↵
|
12 | * @return accepted values↵ | | 13 | return the enumerated values↵
|
13 | */↵ | | 14 | */↵
|
14 | public String[] getValues() {↵ | | 15 | public String[] getValues() {↵
|
15 | return formats | | 16 | return formats
|