KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > finalist > jag > taglib > TagBodySupport


1 /* Copyright (C) 2003 Finalist IT Group
2  *
3  * This file is part of JAG - the Java J2EE Application Generator
4  *
5  * JAG is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * JAG is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  * You should have received a copy of the GNU General Public License
14  * along with JAG; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  */

17
18 package com.finalist.jag.taglib;
19
20
21 import java.util.*;
22
23 import com.finalist.jag.JagException;
24
25
26 /**
27  * Class TagBodySupport
28  *
29  *
30  * @author Wendel D. de Witte
31  * @version %I%, %G%
32  */

33 public abstract class TagBodySupport extends TagSupport {
34
35    /** Field bodyText */
36    private String JavaDoc bodyText;
37
38
39    /**
40     * Constructor TagBodySupport
41     *
42     *
43     */

44    public TagBodySupport() {
45       super();
46    }
47
48
49    /**
50     * Method doInitBodyTag
51     *
52     *
53     * @throws JagException
54     *
55     */

56    public void doInitBodyTag() throws JagException {
57    }
58
59
60    /**
61     * Method doAfterBodyTag
62     *
63     *
64     * @return
65     *
66     * @throws JagException
67     *
68     */

69    public abstract int doAfterBodyTag() throws JagException;
70
71
72    /**
73     * Method getBodyText
74     *
75     *
76     * @return
77     *
78     */

79    public String JavaDoc getBodyText() {
80       return (this.bodyText);
81    }
82
83
84    /**
85     * Method setBodyText
86     *
87     *
88     * @param bodyText
89     *
90     */

91    public void setBodyText(String JavaDoc bodyText) {
92       this.bodyText = bodyText;
93    }
94 }
95
96 ;
Popular Tags