KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > state > xml > XMLContext


1 package org.sapia.soto.state.xml;
2
3 import java.util.Map JavaDoc;
4
5 import org.sapia.soto.state.Context;
6 import org.xml.sax.ContentHandler JavaDoc;
7
8 /**
9  * Specifies the behavior of <code>Context</code>s that allow piping SAX events to the
10  * caller application.
11  *
12  * @see org.sapia.soto.state.Context
13  *
14  * @author Yanick Duchesne
15  *
16  * <dl>
17  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
18  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
19  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
20  * </dl>
21  */

22 public interface XMLContext extends Context{
23     
24     /**
25      * @param handler the <code>ContentHandler</code> that will be used
26      * to pipe SAX events through this instance.
27      */

28     public void setContentHandler(ContentHandler JavaDoc handler);
29     
30     /**
31      * @return the <code>ContentHandler</code> that is used
32      * to pipe SAX events through this instance.
33      */

34     public ContentHandler JavaDoc getContentHandler();
35     
36     /**
37      * Returns the map of objects that are to be bound in pending
38      * "views", such as XSL or STX stylesheets, templates generated
39      * by template engines such as Velocity or freemarker, etc.
40      *
41      * @return a <code>Map</code> of parameters.
42      */

43     public Map JavaDoc getViewParams();
44     
45     
46
47 }
48
Popular Tags