KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > template > parser > ParseContext


1 /*
2  * Copyright (c) 1997-1999 The Java Apache Project. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in
13  * the documentation and/or other materials provided with the
14  * distribution.
15  *
16  * 3. All advertising materials mentioning features or use of this
17  * software must display the following acknowledgment:
18  * "This product includes software developed by the Java Apache
19  * Project for use in the Apache JServ servlet engine project
20  * (http://java.apache.org/)."
21  *
22  * 4. The names "Apache JServ", "Apache JServ Servlet Engine" and
23  * "Java Apache Project" must not be used to endorse or promote products
24  * derived from this software without prior written permission.
25  *
26  * 5. Products derived from this software may not be called "Apache JServ"
27  * nor may "Apache" nor "Apache JServ" appear in their names without
28  * prior written permission of the Java Apache Project.
29  *
30  * 6. Redistributions of any form whatsoever must retain the following
31  * acknowledgment:
32  * "This product includes software developed by the Java Apache
33  * Project for use in the Apache JServ servlet engine project
34  * (http://java.apache.org/)."
35  *
36  * THIS SOFTWARE IS PROVIDED BY THE JAVA APACHE PROJECT "AS IS" AND ANY
37  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
38  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
39  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JAVA APACHE PROJECT OR
40  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
42  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
44  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
45  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
46  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
47  * OF THE POSSIBILITY OF SUCH DAMAGE.
48  *
49  * This software consists of voluntary contributions made by many
50  * individuals on behalf of the Java Apache Group. For more information
51  * on the Java Apache Project and the Apache JServ Servlet Engine project,
52  * please see <http://java.apache.org/>.
53  */

54
55 /*
56  * $Id: ParseContext.java,v 1.4 2004/12/01 07:54:28 hengels Exp $
57  * Copyright 2000,2005 wingS development team.
58  *
59  * This file is part of wingS (http://www.j-wings.org).
60  *
61  * wingS is free software; you can redistribute it and/or modify
62  * it under the terms of the GNU Lesser General Public License
63  * as published by the Free Software Foundation; either version 2.1
64  * of the License, or (at your option) any later version.
65  *
66  * Please see COPYING for the complete licence.
67  */

68 package org.wings.template.parser;
69
70 import java.io.OutputStream JavaDoc;
71
72 /**
73  * A parse context is generated for each
74  * processing of a page and may hold parameters
75  * which are needed in the tag Handlers. A HttpServlet(Request|Response)
76  * are used at least.
77  *
78  * @see PageParser
79  */

80 public interface ParseContext {
81     OutputStream JavaDoc getOutputStream();
82
83     void startTag(int number);
84
85     void doneTag(int number);
86 }
87
88
89
90
91
92
93
Popular Tags