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