public final class Renderer extends com.yahoo.component.provider.FreezableClass implements PageElement
Modifier and Type | Field and Description |
---|---|
private String |
name |
private Map<String,String> |
parameters |
private String |
rendererFor |
Modifier and Type | Method and Description |
---|---|
void |
accept(PageTemplateVisitor visitor)
Accepts a visitor to this structure
|
void |
freeze() |
String |
getName()
Returns the name of this renderer (never null).
|
String |
getRendererFor()
Returns the name of the kind of data this is a renderer for.
|
Map<String,String> |
parameters()
Returns the parameters of this renderer as a live reference (never null).
|
void |
setName(String name) |
void |
setRendererFor(String rendererFor) |
String |
toString() |
clone, ensureNotFrozen, isFrozen
public Renderer(String name)
public String getName()
public final void setName(String name)
public String getRendererFor()
This is null if this is a renderer for a whole section, or if this is a renderer for all kinds of data from a particular source and this is not frozen.
Otherwise, it is either the name of the source this is the renderer for, or the renderer for all data items having this name as a type.
This, a (frontend) dispatcher of data to renderers should for each data item:
type
name set of the data item
rendererFor
equal to the data items source
public void setRendererFor(String rendererFor)
public Map<String,String> parameters()
public void freeze()
freeze
in interface com.yahoo.component.provider.Freezable
freeze
in class com.yahoo.component.provider.FreezableClass
public void accept(PageTemplateVisitor visitor)
accept
in interface PageElement
Copyright © 2018. All rights reserved.