01: /*
02: * Created on 18 Sep 2006
03: */
04: package uk.org.ponder.rsf.renderer.scr;
05:
06: import uk.org.ponder.rsf.renderer.ComponentRenderer;
07: import uk.org.ponder.rsf.template.XMLLump;
08: import uk.org.ponder.xml.XMLWriter;
09:
10: public interface BasicSCR extends StaticComponentRenderer {
11: /** Renders the rewritten template data to the output stream.
12: * @param lump The lump corresponding to the opening tag holding
13: * the <code>rsf:id</code> matching this renderer's name.
14: * @param xmlw The {@link XMLWriter} to which the rewritten data is to be
15: * sent.
16: * @return An integer code identifying the action this renderer took, either
17: * {@link ComponentRenderer#LEAF_TAG} or {@link ComponentRenderer#NESTING_TAG}
18: * depending on whether just the opening tag or also the closing tag was consumed from
19: * the template.
20: */
21: public int render(XMLLump lump, XMLWriter xmlw);
22: }
|