01: package dinamica;
02:
03: /**
04: * Utility class used to represent a segment of a template.<br>
05: * This class is used by TemplateEngine (method getSegments) to split a template
06: * into data segments (printable) and include-directives, so that
07: * servlet includes can be processed very easely
08: * <br>
09: * Creation date: 2/10/2003<br>
10: * Last Update: 2/10/2003<br>
11: * (c) 2003 Martin Cordova<br>
12: * This code is released under the LGPL license<br>
13: * @author Martin Cordova
14: */
15: public class TemplateSegment {
16:
17: /**
18: * May be "inc" for includes or "data" for data
19: */
20: public String segmentType = null;
21:
22: /**
23: * May be segment data (printable text) or an include path
24: * to invoke a servlet using a request dispatcher
25: */
26: public String segmentData = null;
27:
28: }
|