public static enum TemplateVariable.VariableType extends Enum<TemplateVariable.VariableType>
Enum Constant and Description |
---|
COMPOSITE_PARAM |
FRAGMENT |
PATH_VARIABLE |
REQUEST_PARAM |
REQUEST_PARAM_CONTINUED |
SEGMENT |
Modifier and Type | Method and Description |
---|---|
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.
|
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
public static final TemplateVariable.VariableType COMPOSITE_PARAM
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 nameNullPointerException
- 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>
Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.