|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.configuration.impl.AttributeParser
com.pietschy.command.configuration.impl.ValueListAttributeParser
class ValueListAttributeParser
Attribute parser the accepts a list of allowed values.
| Constructor Summary | |
|---|---|
protected |
ValueListAttributeParser(java.lang.String property,
java.lang.String... values)
Creates a new instance for the specified property and value list. |
| Method Summary | |
|---|---|
void |
parse(java.lang.String value,
Configuration config,
ExceptionFactory factory)
Parses the property ensuring it is in the list of allowed values. |
| Methods inherited from class com.pietschy.command.configuration.impl.AttributeParser |
|---|
getKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ValueListAttributeParser(java.lang.String property,
java.lang.String... values)
property - the property name to parse.values - the value list.| Method Detail |
|---|
public void parse(java.lang.String value,
Configuration config,
ExceptionFactory factory)
throws ParseException
parse in class AttributeParservalue - the valueconfig - the configuration store.factory - the exception factory.
ParseException - if the value was not one of the allowed values.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||