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 java.lang.Object
combine(java.lang.Object[] values)
Combines multiple values of an option into a single value.java.lang.String
defaultValue()
StringPropertyId
getPropertyId()
java.lang.String
normalize(java.lang.String value)
java.lang.String
valueOf(java.lang.String arg)
-
-
-
Constructor Detail
-
StringOption
public StringOption(StringPropertyId pid)
-
-
Method Detail
-
getPropertyId
public StringPropertyId getPropertyId()
- Specified by:
getPropertyId
in interfaceOption
-
valueOf
public java.lang.String valueOf(java.lang.String arg) throws OptionArgumentException
- Specified by:
valueOf
in interfaceOption
- Throws:
OptionArgumentException
-
defaultValue
public java.lang.String defaultValue() throws OptionArgumentPresenceException
- Throws:
OptionArgumentPresenceException
-
normalize
public java.lang.String normalize(java.lang.String value) throws OptionArgumentFormatException
- Throws:
OptionArgumentFormatException
-
combine
public java.lang.Object combine(java.lang.Object[] values)
Description copied from interface:Option
Combines multiple values of an option into a single value. A property whose value is logically a sequence may be represented by multiple options each representing a single member of the sequence.
-
-