public final class TemplateVariable extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateVariable.VariableType
An enumeration for all supported variable types.
|
| Constructor and Description |
|---|
TemplateVariable(String name,
TemplateVariable.VariableType type)
Creates a new
TemplateVariable with the given name and type. |
TemplateVariable(String name,
TemplateVariable.VariableType type,
String description)
Creates a new
TemplateVariable with the given name, type and description. |
public TemplateVariable(String name, TemplateVariable.VariableType type)
TemplateVariable with the given name and type.name - must not be null or empty.type - must not be null.public TemplateVariable(String name, TemplateVariable.VariableType type, String description)
TemplateVariable with the given name, type and description.name - must not be null or empty.type - must not be null.description - must not be null.public static TemplateVariable pathVariable(String variable)
TemplateVariable.VariableType.PATH_VARIABLE variables.variable - must not be null or empty.public static TemplateVariable requestParameter(String parameter)
TemplateVariable.VariableType.REQUEST_PARAM variables.parameter - must not be null or empty.public static TemplateVariable requestParameterContinued(String parameter)
TemplateVariable.VariableType.REQUEST_PARAM_CONTINUED variables.parameter - must not be null or empty.public static TemplateVariable segment(String segment)
TemplateVariable.VariableType.SEGMENT variables.segment - must not be null or empty.public static TemplateVariable fragment(String fragment)
TemplateVariable.VariableType.FRAGMENT variables.fragment - must not be null or empty.public static TemplateVariable compositeParameter(String parameter)
TemplateVariable.VariableType.COMPOSITE_PARAM variables.parameter - must not be null or empty.public boolean hasDescription()
public String getName()
public TemplateVariable.VariableType getType()
public String getDescription()
Copyright © 2011–2021 VMware, Inc.. All rights reserved.