1 package org.sapia.soto.state.xml; 2 3 import java.util.Map ; 4 5 import org.sapia.soto.state.ContextImpl; 6 import org.sapia.soto.state.MapScope; 7 import org.xml.sax.ContentHandler ; 8 9 20 public class XMLContextImpl extends ContextImpl implements XMLContext{ 21 22 public static final String SCOPE_VIEW = "view"; 23 24 private MapScope _viewParams; 25 private ContentHandler _handler; 26 27 public XMLContextImpl(){ 28 _viewParams = new MapScope(); 29 super.addScope(SCOPE_VIEW, _viewParams); 30 } 31 32 35 public Map getViewParams() { 36 return _viewParams; 37 } 38 39 42 public void setContentHandler(ContentHandler handler) { 43 _handler = handler; 44 } 45 46 49 public ContentHandler getContentHandler() { 50 return _handler; 51 } 52 53 } 54 | Popular Tags |