public enum ValueType extends Enum<ValueType>
The type of the value also determines how it is expanded. Therefore, this enumeration also instantiates renderers.
ValueRenderer| Enum Constant and Description |
|---|
ARRAY
Array/list values
|
MAP
Map values
|
SCALAR
Scalar values (simple string values)
|
| Modifier and Type | Method and Description |
|---|---|
abstract ValueRenderer |
selectRenderer(ExpressionType type)
Get the renderer for this value type and expression type
|
String |
toString() |
static ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueType SCALAR
public static final ValueType ARRAY
public static final ValueType MAP
Note: the RFC calls these "associative arrays".
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType 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 ValueRenderer selectRenderer(ExpressionType type)
type - the expression typeCopyright © 2013. All Rights Reserved.