01: /*
02: * Created on May 16, 2006
03: */
04: package uk.org.ponder.rsf.renderer.decorator;
05:
06: import java.util.Map;
07:
08: import uk.org.ponder.rsf.components.decorators.UIDecorator;
09:
10: /** The context for a decorator consists of a map of incoming attributes from
11: * the template.
12: * @author Antranig Basman (antranig@caret.cam.ac.uk)
13: *
14: */
15:
16: public interface DecoratorRenderer {
17: /** The class of Decorator that this renderer renders */
18: public Class getRenderedType();
19:
20: /** A comma-separated list of content type names that this renderer is good for
21: * (as listed in {@link uk.org.ponder.rsf.content.ContentTypeInfoRegistry})
22: */
23: public String getContentTypes();
24:
25: /** Perform the rendering operation by modifying the supplied attribute map
26: * (a map of String to String).
27: */
28: public void modifyAttributes(UIDecorator decorator, String tagname,
29: Map tomodify);
30: }
|