1 package com.calipso.xmleditor; 2 3 import java.util.Map ; 4 import java.util.HashMap ; 5 import java.util.Vector ; 6 7 14 public class XmlEditorCache { 15 private Map cachedXml = new HashMap (); 16 private Map cachedXsd = new HashMap (); 17 private Map cachedXmlWithXsd = new HashMap (); 18 private XmlEditorUI xmlEditorUI; 19 20 public XmlEditorCache(XmlEditorUI ui) { 21 this.xmlEditorUI = ui; 22 } 23 24 public void putXml(Object key, Object value){ 25 cachedXml.put(key, value); 26 } 27 28 public void putXsd(Object key, Object value){ 29 cachedXsd.put(key, value); 30 } 31 32 public void putXmlWithXsd(Object key, Object xml, Object xsd){ 33 Vector value = new Vector (2); 34 value.add(xml); 35 value.add(xsd); 36 cachedXmlWithXsd.put(key, new Vector ()); 37 } 38 } 39 | Popular Tags |