KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dinamica > TemplateSegment


1 package dinamica;
2
3 /**
4  * Utility class used to represent a segment of a template.<br>
5  * This class is used by TemplateEngine (method getSegments) to split a template
6  * into data segments (printable) and include-directives, so that
7  * servlet includes can be processed very easely
8  * <br>
9  * 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     /**
19      * May be "inc" for includes or "data" for data
20      */

21     public String JavaDoc segmentType = null;
22     
23     /**
24      * May be segment data (printable text) or an include path
25      * to invoke a servlet using a request dispatcher
26      */

27     public String JavaDoc segmentData = null;
28     
29 }
30
Popular Tags