Package com.thaiopensource.validate
Interface Option
-
- All Known Implementing Classes:
FlagOption,StringOption
public interface Option
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectcombine(java.lang.Object[] values)Combines multiple values of an option into a single value.PropertyId<?>getPropertyId()java.lang.ObjectvalueOf(java.lang.String arg)
-
-
-
Method Detail
-
getPropertyId
PropertyId<?> getPropertyId()
-
valueOf
java.lang.Object valueOf(java.lang.String arg) throws OptionArgumentException- Throws:
OptionArgumentException
-
combine
java.lang.Object combine(java.lang.Object[] values)
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.- Parameters:
values- an array of values to be combined- Returns:
- an Object representing the combination, or
nullif they cannot be combined
-
-