|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TemplateVariable.VariableType>
org.springframework.hateoas.TemplateVariable.VariableType
public static enum TemplateVariable.VariableType
An enumeration for all supported variable types.
| Enum Constant Summary | |
|---|---|
FRAGMENT
|
|
PATH_VARIABLE
|
|
REQUEST_PARAM
|
|
REQUEST_PARAM_CONTINUED
|
|
SEGMENT
|
|
| Method Summary | |
|---|---|
boolean |
canBeCombinedWith(TemplateVariable.VariableType type)
|
static TemplateVariable.VariableType |
from(String key)
Returns the TemplateVariable.VariableType for the given variable key. |
boolean |
isOptional()
Returns whether the variable of this type is optional. |
String |
toString()
|
static TemplateVariable.VariableType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TemplateVariable.VariableType[] |
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 TemplateVariable.VariableType PATH_VARIABLE
public static final TemplateVariable.VariableType REQUEST_PARAM
public static final TemplateVariable.VariableType REQUEST_PARAM_CONTINUED
public static final TemplateVariable.VariableType SEGMENT
public static final TemplateVariable.VariableType FRAGMENT
| Method Detail |
|---|
public static TemplateVariable.VariableType[] values()
for (TemplateVariable.VariableType c : TemplateVariable.VariableType.values()) System.out.println(c);
public static TemplateVariable.VariableType 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 boolean isOptional()
public boolean canBeCombinedWith(TemplateVariable.VariableType type)
public static TemplateVariable.VariableType from(String key)
TemplateVariable.VariableType for the given variable key.
key - must not be null.
public String toString()
toString in class Enum<TemplateVariable.VariableType>
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||