Enum ParameterValueType
- java.lang.Object
-
- java.lang.Enum<ParameterValueType>
-
- org.hippoecm.hst.configuration.components.ParameterValueType
-
- All Implemented Interfaces:
Serializable
,Comparable<ParameterValueType>
public enum ParameterValueType extends Enum<ParameterValueType>
Supported value types of dynamic component parameters are- text
- integer
- decimal
- boolean
- datetime
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getDefaultReturnType()
static ParameterValueType
getValueType(Method method)
static Optional<ParameterValueType>
getValueType(String valueType)
boolean
supportsReturnType(Class<?> returnType)
static ParameterValueType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParameterValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final ParameterValueType STRING
-
INTEGER
public static final ParameterValueType INTEGER
-
DECIMAL
public static final ParameterValueType DECIMAL
-
BOOLEAN
public static final ParameterValueType BOOLEAN
-
DATE
public static final ParameterValueType DATE
-
-
Method Detail
-
values
public static ParameterValueType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ParameterValueType c : ParameterValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParameterValueType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultReturnType
public Class<?> getDefaultReturnType()
-
supportsReturnType
public boolean supportsReturnType(Class<?> returnType)
-
getValueType
public static ParameterValueType getValueType(Method method)
-
getValueType
public static Optional<ParameterValueType> getValueType(String valueType)
-
-