public enum ParameterDataTypeEncoder extends Enum<ParameterDataTypeEncoder>
Modifier and Type | Method and Description |
---|---|
abstract String |
encode(String rawValue) |
static String |
encodeFor(ParameterDataType dataType,
String rawValue) |
abstract String |
getSampleValue() |
static ParameterDataTypeEncoder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParameterDataTypeEncoder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParameterDataTypeEncoder STRING
public static final ParameterDataTypeEncoder NUMBER
public static final ParameterDataTypeEncoder DECIMAL
public static final ParameterDataTypeEncoder BOOLEAN
public static ParameterDataTypeEncoder[] values()
for (ParameterDataTypeEncoder c : ParameterDataTypeEncoder.values()) System.out.println(c);
public static ParameterDataTypeEncoder valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract String getSampleValue()
public static String encodeFor(ParameterDataType dataType, String rawValue) throws ValueEncodeException
ValueEncodeException
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.