|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.TemplateVariable
public final class TemplateVariable
A single template variable.
| Nested Class Summary | |
|---|---|
static class |
TemplateVariable.VariableType
An enumeration for all supported variable types. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public String getName()
public TemplateVariable.VariableType getType()
public String getDescription()
public boolean hasDescription()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||