1 13 package info.magnolia.cms.exchange; 14 15 import java.io.File ; 16 import java.util.Hashtable ; 17 import java.util.Map ; 18 19 20 24 public class ActivationContent { 25 26 29 private Map fileList = new Hashtable (); 30 31 34 private Map properties = new Hashtable (); 35 36 41 public void addFile(String resourceId, File file) { 42 this.fileList.put(resourceId, file); 43 } 44 45 50 public File getFile(String resourceId) { 51 return (File ) this.fileList.get(resourceId); 52 } 53 54 58 public void removeFile(String resourceId) { 59 this.fileList.remove(resourceId); 60 } 61 62 66 public Map getFiles() { 67 return this.fileList; 68 } 69 70 75 public void addProperty(String key, String value) { 76 if (value == null) { 77 value = ""; 78 } 79 this.properties.put(key, value); 80 } 81 82 87 public String getproperty(String key) { 88 return (String ) this.properties.get(key); 89 } 90 91 95 public void removeProperty(String key) { 96 this.properties.remove(key); 97 } 98 99 103 public Map getProperties() { 104 return this.properties; 105 } 106 } 107 | Popular Tags |