com.github.fge.uritemplate.expression
Class TemplateLiteral

java.lang.Object
  extended by 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.


Constructor Summary
TemplateLiteral(String literal)
           
 
Method Summary
 String expand(VariableMap vars)
          Compute an expanded string given a map of variables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateLiteral

public TemplateLiteral(String literal)
Method Detail

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