01: /*
02: * Created on 19 Aug 2006
03: */
04: package uk.org.ponder.rsf.template;
05:
06: import java.util.Map;
07:
08: /** An interface invoked during parsing of a template file, to allow any
09: * last-minute adjustment of attributes (typically, to "auto-mark-up" with
10: * an rsf:id attribute where there may have been none).
11: * @author Antranig Basman (antranig@caret.cam.ac.uk)
12: */
13:
14: public interface TemplateParseInterceptor {
15: /** Invoked with a modifiable map of attributes encountered while parsing
16: * a tag in a template file. The implementor may perform any adjustment
17: * to the map (although if the adjusted map does NOT contain the
18: * {@link XMLLump#ID_ATTRIBUTE}, the adjustments will be ignored).
19: * Do not cache the supplied map after the return of this method.
20: */
21: public void adjustAttributes(String tag, Map attributes);
22: }
|