01: /*
02: * Created on 18 Sep 2006
03: */
04: package uk.org.ponder.rsf.renderer.scr;
05:
06: import uk.org.ponder.rsf.template.XMLLump;
07: import uk.org.ponder.rsf.template.XMLLumpList;
08: import uk.org.ponder.xml.XMLWriter;
09:
10: /** A static component renderer that can incorporate markup "collected" from
11: * elsewhere in the template tree.
12: * @author Antranig Basman (antranig@caret.cam.ac.uk)
13: *
14: */
15: public interface CollectingSCR extends StaticComponentRenderer {
16: /** Return an array of names of "contributing" SCRs,
17: * consisting of the text following {@link XMLLump#SCR_CONTRIBUTE_PREFIX}
18: * in the rsf:id of the contribution marker.
19: *
20: */
21: public String[] getCollectingNames();
22:
23: /** @see BasicSCR for details of behaviour.
24: * @param collected The list of XMLLump items corresponding to the collected
25: * markup that should be incorporated into the rendering of the peering tag.
26: */
27: public int render(XMLLump lump, XMLLumpList collected,
28: XMLWriter xmlw);
29: }
|