1 5 package net.sf.panoptes.registry; 6 7 13 public class Template { 14 private String name; 15 private String description; 16 private String script; 17 18 public Template(String name, String description, String script) { 19 this.name = name; 20 this.description = description; 21 this.script = script; 22 } 23 24 public String getDescription() { 25 return description; 26 } 27 28 public String getName() { 29 return name; 30 } 31 32 public String getScript() { 33 return script; 34 } 35 36 37 public boolean equals(Object o) { 38 if (o instanceof Template) return ((Template) o).getScript().equals(getScript()); 39 else return false; 40 } 41 42 public int hashCode() { 43 return getScript().hashCode(); 44 } 45 46 } 47 | Popular Tags |