public interface Parameter extends Serializable
| Modifier and Type | Method and Description |
|---|---|
int |
cardinality()
Returns the number of values in this parameter.
|
boolean |
isMultivalued()
Returns
true if this parameter contains multiple values. |
String |
name()
Returns the name of the parameter.
|
String |
rawValue()
Returns the first raw value of this parameter.
|
<T> T |
rawValueAs(Class<? extends T> clazz)
Returns the first raw value of this parameter as an instance of a given
type.
|
List<String> |
rawValues()
Returns all the raw values of this parameter.
|
<T> List<T> |
rawValuesAs(Class<? extends T> clazz)
Returns the raw values of this parameter as instances of a given type.
|
boolean isMultivalued()
true if this parameter contains multiple values.true if this parameter contains multiple valuesint cardinality()
Integer.MAX_VALUE value, returns
Integer.MAX_VALUE.String rawValue()
List<String> rawValues()
<T> T rawValueAs(Class<? extends T> clazz)
T - the type of object to be returnedclazz - the Class for the type T to which the raw value will
be transformed to.Class to which the first
raw value of this parameter is transformed to.ObjectTransformationException - if the raw value cannot be transformed to the specified type
T.<T> List<T> rawValuesAs(Class<? extends T> clazz)
T - the type of object to be returnedclazz - the Class for the type T to which the raw values will
be transformed to.Class to which the raw
values of this parameter are transformed to.ObjectTransformationException - if any of the raw values cannot be transformed to the
specified type T.
Copyright (C) 2014-2016, Center for Open Middleware