com.github.fge.uritemplate.expression
Class TemplateExpression
java.lang.Object
com.github.fge.uritemplate.expression.TemplateExpression
- All Implemented Interfaces:
- URITemplateExpression
public final class TemplateExpression
- extends Object
- implements URITemplateExpression
Template expression (ie, not literal) rendering class
This class ultimately handles all {...}
sequences found in a
URI template.
- See Also:
ValueRenderer
TemplateExpression
public TemplateExpression(ExpressionType expressionType,
List<VariableSpec> variableSpecs)
expand
public String expand(VariableMap vars)
throws URITemplateException
- Description copied from interface:
URITemplateExpression
- Compute an expanded string given a map of variables
- Specified by:
expand
in interface URITemplateExpression
- Parameters:
vars
- the variables (names and values)
- Returns:
- the expanded string
- Throws:
URITemplateException
- incompatible variable/expansion pair
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object