KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.sapia.soto.state.xml;
2
3 import java.util.Map JavaDoc;
4
5 import org.sapia.soto.state.ContextImpl;
6 import org.sapia.soto.state.MapScope;
7 import org.xml.sax.ContentHandler JavaDoc;
8
9 /**
10  * An implementation of the <code>XMLContext</code> interface.
11  *
12  * @author Yanick Duchesne
13  *
14  * <dl>
15  * <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>
16  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
17  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
18  * </dl>
19  */

20 public class XMLContextImpl extends ContextImpl implements XMLContext{
21     
22     public static final String JavaDoc SCOPE_VIEW = "view";
23     
24     private MapScope _viewParams;
25     private ContentHandler JavaDoc _handler;
26     
27     public XMLContextImpl(){
28         _viewParams = new MapScope();
29         super.addScope(SCOPE_VIEW, _viewParams);
30     }
31     
32     /**
33    * @see org.sapia.soto.state.xml.XMLContext#getViewParams()
34    */

35   public Map JavaDoc getViewParams() {
36     return _viewParams;
37   }
38   
39   /**
40    * @see org.sapia.soto.state.xml.XMLContext#setContentHandler(org.xml.sax.ContentHandler)
41    */

42   public void setContentHandler(ContentHandler JavaDoc handler) {
43     _handler = handler;
44   }
45   
46   /**
47    * @see org.sapia.soto.state.xml.XMLContext#getContentHandler()
48    */

49   public ContentHandler JavaDoc getContentHandler() {
50     return _handler;
51   }
52
53 }
54
Popular Tags