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 Objectcombine(Object[] values)Combines multiple values of an option into a single value.StringdefaultValue()StringPropertyIdgetPropertyId()Stringnormalize(String value)StringvalueOf(String arg)
-
-
-
Constructor Detail
-
StringOption
public StringOption(StringPropertyId pid)
-
-
Method Detail
-
getPropertyId
public StringPropertyId getPropertyId()
- Specified by:
getPropertyIdin interfaceOption
-
valueOf
public String valueOf(String arg) throws OptionArgumentException
- Specified by:
valueOfin interfaceOption- Throws:
OptionArgumentException
-
defaultValue
public String defaultValue() throws OptionArgumentPresenceException
- Throws:
OptionArgumentPresenceException
-
normalize
public String normalize(String value) throws OptionArgumentFormatException
- Throws:
OptionArgumentFormatException
-
-