01: /*
02: * Created on 24-May-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: /** Default null SCR used on discovering an unrecognised SCR tag.
11: * Minimal behaviour of writing the existing open tag, treating it as a
12: * trunk tag.
13: * @author Antranig Basman (antranig@caret.cam.ac.uk)
14: *
15: */
16:
17: public class IgnoreRewriteSCR implements BasicSCR {
18:
19: public static final BasicSCR instance = new IgnoreRewriteSCR();
20:
21: public String getName() {
22: return "ignore";
23: }
24:
25: public int render(XMLLump lump, XMLWriter xmlw) {
26: return ComponentRenderer.LEAF_TAG;
27: }
28:
29: }
|