(Enum<?> value)
| 90 | * @return localized text form |
| 91 | */ |
| 92 | public String print(Enum<?> value) { |
| 93 | |
| 94 | int index = value.ordinal(); |
| 95 | |
| 96 | if (this.textForms.size() <= index) { |
| 97 | return value.name(); |
| 98 | } else { |
| 99 | return this.textForms.get(index); |
| 100 | } |
| 101 | |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * <p>Interpretes given text form as enum-based element value. </p> |