|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ValueType>
com.github.fge.uritemplate.vars.values.ValueType
public enum ValueType
Enumeration of the different types of variable values
The type of the value also determines how it is expanded. Therefore, this enumeration also instantiates renderers.
ValueRenderer
Enum Constant Summary | |
---|---|
ARRAY
Array/list values |
|
MAP
Map values |
|
SCALAR
Scalar values (simple string values) |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ValueType SCALAR
public static final ValueType ARRAY
public static final ValueType MAP
Note: the RFC calls these "associative arrays".
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic abstract ValueRenderer selectRenderer(ExpressionType type)
type
- the expression type
public String toString()
toString
in class Enum<ValueType>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |