com.github.fge.uritemplate.render
Class MapRenderer

java.lang.Object
  extended by com.github.fge.uritemplate.render.ValueRenderer
      extended by com.github.fge.uritemplate.render.MultiValueRenderer
          extended by com.github.fge.uritemplate.render.MapRenderer

public final class MapRenderer
extends MultiValueRenderer

Renderer for map variable values


Field Summary
 
Fields inherited from class com.github.fge.uritemplate.render.MultiValueRenderer
COMMA
 
Fields inherited from class com.github.fge.uritemplate.render.ValueRenderer
ifEmpty, named
 
Constructor Summary
MapRenderer(ExpressionType type)
           
 
Method Summary
protected  List<String> renderNamedExploded(String varname, VariableValue value)
          Rendering method for named expressions and exploded varspecs
protected  List<String> renderNamedNormal(String varname, VariableValue value)
          Rendering method for named expressions and non exploded varspecs
protected  List<String> renderUnnamedExploded(VariableValue value)
          Rendering method for non named expressions and exploded varspecs
protected  List<String> renderUnnamedNormal(VariableValue value)
          Rendering method for non named expressions and non exploded varspecs
 
Methods inherited from class com.github.fge.uritemplate.render.MultiValueRenderer
render
 
Methods inherited from class com.github.fge.uritemplate.render.ValueRenderer
pctEncode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapRenderer

public MapRenderer(ExpressionType type)
Method Detail

renderNamedExploded

protected List<String> renderNamedExploded(String varname,
                                           VariableValue value)
Description copied from class: MultiValueRenderer
Rendering method for named expressions and exploded varspecs

Specified by:
renderNamedExploded in class MultiValueRenderer
Parameters:
varname - name of the variable (used in lists)
value - value of the variable
Returns:
list of rendered elements

renderUnnamedExploded

protected List<String> renderUnnamedExploded(VariableValue value)
Description copied from class: MultiValueRenderer
Rendering method for non named expressions and exploded varspecs

Specified by:
renderUnnamedExploded in class MultiValueRenderer
Parameters:
value - value of the variable
Returns:
list of rendered elements

renderNamedNormal

protected List<String> renderNamedNormal(String varname,
                                         VariableValue value)
Description copied from class: MultiValueRenderer
Rendering method for named expressions and non exploded varspecs

Specified by:
renderNamedNormal in class MultiValueRenderer
Parameters:
varname - name of the variable (used in lists)
value - value of the variable
Returns:
list of rendered elements

renderUnnamedNormal

protected List<String> renderUnnamedNormal(VariableValue value)
Description copied from class: MultiValueRenderer
Rendering method for non named expressions and non exploded varspecs

Specified by:
renderUnnamedNormal in class MultiValueRenderer
Parameters:
value - value of the variable
Returns:
list of rendered elements