1 17 18 19 package org.apache.catalina.deploy; 20 21 import java.io.Serializable ; 22 import java.util.Iterator ; 23 import java.util.HashMap ; 24 25 26 32 33 public class ResourceBase implements Serializable { 34 35 36 38 39 42 private String description = null; 43 44 public String getDescription() { 45 return (this.description); 46 } 47 48 public void setDescription(String description) { 49 this.description = description; 50 } 51 52 53 54 57 private String name = null; 58 59 public String getName() { 60 return (this.name); 61 } 62 63 public void setName(String name) { 64 this.name = name; 65 } 66 67 68 71 private String type = null; 72 73 public String getType() { 74 return (this.type); 75 } 76 77 public void setType(String type) { 78 this.type = type; 79 } 80 81 82 85 private HashMap properties = new HashMap (); 86 87 90 public Object getProperty(String name) { 91 return properties.get(name); 92 } 93 94 97 public void setProperty(String name, Object value) { 98 properties.put(name, value); 99 } 100 101 104 public void removeProperty(String name) { 105 properties.remove(name); 106 } 107 108 111 public Iterator listProperties() { 112 return properties.keySet().iterator(); 113 } 114 115 116 118 119 122 protected NamingResources resources = null; 123 124 public NamingResources getNamingResources() { 125 return (this.resources); 126 } 127 128 void setNamingResources(NamingResources resources) { 129 this.resources = resources; 130 } 131 132 133 } 134 | Popular Tags |