1 4 package cve.core.elementEEL; 5 6 import cve.core.comunicazione.*; 7 import java.util.*; 8 9 19 public abstract class ABaseObject implements IBaseObject { 20 protected HashMap groups; 21 protected String id; 22 protected String description; 23 24 27 public ABaseObject () { 28 groups=new HashMap(); } 30 31 37 public boolean notifyGroups(String nome, String tipo,GruppoCve refGroup ){ 38 Object keyName=new String (nome); 39 InfoGroup infoG=new InfoGroup(tipo,refGroup); 40 groups.put(keyName,(Object )infoG); return true; 42 } 43 44 48 protected class InfoGroup { 49 String tipo; 50 GruppoCve refGroup; 51 52 InfoGroup(String tipo,GruppoCve refGroup){ 53 this.tipo=tipo; 54 this.refGroup=refGroup; 55 } 56 } 57 58 61 public String getId(){ 62 return id; 63 } 64 65 69 public void setId(String id){ 70 this.id=id; 71 } 72 73 76 public String getDescription(){ 77 return description; 78 } 79 80 83 public void setDescription(String description){ 84 this.description=description; 85 } 86 } 87 | Popular Tags |