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. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Returns the description of the variable.
|
String |
getName()
Returns the name of the variable.
|
TemplateVariable.VariableType |
getType()
Returns the type of the variable.
|
boolean |
hasDescription()
Returns whether the variable has a description.
|
int |
hashCode() |
String |
toString() |
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 String getName()
public TemplateVariable.VariableType getType()
public String getDescription()
public boolean hasDescription()
Copyright © 2012-2015–2015 Pivotal, Inc.. All rights reserved.