|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fge.uritemplate.render.ValueRenderer
com.github.fge.uritemplate.render.MultiValueRenderer
public abstract class MultiValueRenderer
Base abstract class for list and map rendering
The rendering algorithm for both is very similar. Common logic is delegated to this class.
The main rendering method essentially delegates to other rendering methods since the actual result is highly dependent on both the varspec modifier and expression type.
| Field Summary | |
|---|---|
protected static Joiner |
COMMA
|
| Fields inherited from class com.github.fge.uritemplate.render.ValueRenderer |
|---|
ifEmpty, named |
| Constructor Summary | |
|---|---|
protected |
MultiValueRenderer(ExpressionType type)
|
| Method Summary | |
|---|---|
List<String> |
render(VariableSpec varspec,
VariableValue value)
Render a value given a varspec and value |
protected abstract List<String> |
renderNamedExploded(String varname,
VariableValue value)
Rendering method for named expressions and exploded varspecs |
protected abstract List<String> |
renderNamedNormal(String varname,
VariableValue value)
Rendering method for named expressions and non exploded varspecs |
protected abstract List<String> |
renderUnnamedExploded(VariableValue value)
Rendering method for non named expressions and exploded varspecs |
protected abstract List<String> |
renderUnnamedNormal(VariableValue value)
Rendering method for non named expressions and non exploded varspecs |
| 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 |
| Field Detail |
|---|
protected static final Joiner COMMA
| Constructor Detail |
|---|
protected MultiValueRenderer(ExpressionType type)
| Method Detail |
|---|
public final List<String> render(VariableSpec varspec,
VariableValue value)
throws URITemplateException
ValueRenderer
render in class ValueRenderervarspec - the varspecvalue - the matching variable value
URITemplateException - illegal expansion
protected abstract List<String> renderNamedExploded(String varname,
VariableValue value)
varname - name of the variable (used in lists)value - value of the variable
protected abstract List<String> renderUnnamedExploded(VariableValue value)
value - value of the variable
protected abstract List<String> renderNamedNormal(String varname,
VariableValue value)
varname - name of the variable (used in lists)value - value of the variable
protected abstract List<String> renderUnnamedNormal(VariableValue value)
value - value of the variable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||