1 21 24 package org.lobobrowser.html.domimpl; 25 26 import java.util.*; 27 28 import org.w3c.dom.DOMConfiguration ; 29 import org.w3c.dom.DOMException ; 30 import org.w3c.dom.DOMStringList ; 31 32 public class DOMConfigurationImpl implements DOMConfiguration { 33 private final Map parameters = new HashMap(); 34 35 public DOMConfigurationImpl() { 36 super(); 37 } 38 39 public void setParameter(String name, Object value) throws DOMException { 40 synchronized(this) { 41 this.parameters.put(name, value); 42 } 43 } 44 45 public Object getParameter(String name) throws DOMException { 46 synchronized(this) { 47 return this.parameters.get(name); 48 } 49 } 50 51 public boolean canSetParameter(String name, Object value) { 52 return true; 54 } 55 56 public DOMStringList getParameterNames() { 57 synchronized(this) { 58 return new DOMStringListImpl(parameters.keySet()); 59 } 60 } 61 } 62 | Popular Tags |