com.github.fge.uritemplate.expression
Class TemplateLiteral
java.lang.Object
com.github.fge.uritemplate.expression.TemplateLiteral
- All Implemented Interfaces:
- URITemplateExpression
public final class TemplateLiteral
- extends Object
- implements URITemplateExpression
Literals rendering class
This covers all strings inbetween actual URI template expressions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateLiteral
public TemplateLiteral(String literal)
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