01: /*
02: * Created on Jul 27, 2005
03: */
04: package uk.org.ponder.rsf.template;
05:
06: import uk.org.ponder.rsf.view.BasedViewTemplate;
07:
08: /**
09: * The raw constituents of an XML view template, being i) The XMLLump[] array,
10: * ii) The "root lump" holding the initial downmap, and iii) the global headmap.
11: * The system assumes that renders will be much more frequent than template
12: * reads, and so takes special efforts to condense the representation for rapid
13: * render-time access, at the expense of slightly slower parsing.
14: *
15: * @author Antranig Basman (antranig@caret.cam.ac.uk)
16: *
17: */
18: public class XMLViewTemplate extends GenericXMLViewTemplate implements
19: BasedViewTemplate {
20: // a hypothetical "root lump" whose downmap contains root RSF components.
21: public XMLLump rootlump;
22: // private HashMap foridtocomponent = new HashMap();
23: public XMLLump[] lumps;
24: // index of the first lump holding root document tag
25: public int roottagindex;
26: // true if this is a "local" template which only contributes the root to global resolution
27: public boolean isstatictemplate;
28:
29: public char[] buffer;
30: // The template's full path, for debugging purposes
31: public String fullpath;
32:
33: private String resourcebase;
34:
35: private String extresourcebase;
36:
37: public void setExtResourceBase(String extresourcebase) {
38: this .extresourcebase = extresourcebase;
39: }
40:
41: public String getExtResourceBase() {
42: return extresourcebase;
43: }
44:
45: public void setRelativeResourceBase(String resourcebase) {
46: this .resourcebase = resourcebase;
47: }
48:
49: public String getRelativeResourceBase() {
50: return resourcebase;
51: }
52:
53: }
|