Package com.thaiopensource.validate
Class StringOption
- java.lang.Object
-
- com.thaiopensource.validate.StringOption
-
-
Constructor Summary
Constructors Constructor Description StringOption(StringPropertyId pid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
combine(Object[] values)
Combines multiple values of an option into a single value.String
defaultValue()
StringPropertyId
getPropertyId()
String
normalize(String value)
String
valueOf(String arg)
-
-
-
Constructor Detail
-
StringOption
public StringOption(StringPropertyId pid)
-
-
Method Detail
-
getPropertyId
public StringPropertyId getPropertyId()
- Specified by:
getPropertyId
in interfaceOption
-
valueOf
public String valueOf(String arg) throws OptionArgumentException
- Specified by:
valueOf
in interfaceOption
- Throws:
OptionArgumentException
-
defaultValue
public String defaultValue() throws OptionArgumentPresenceException
- Throws:
OptionArgumentPresenceException
-
normalize
public String normalize(String value) throws OptionArgumentFormatException
- Throws:
OptionArgumentFormatException
-
-