1 20 package org.enhydra.barracuda.core.event; 21 22 import java.io.*; 23 import java.util.*; 24 25 import org.enhydra.barracuda.plankton.data.StateMap; 26 27 31 public interface BaseEvent extends StateMap, Cloneable { 32 public static String EVENT_ID = "$eid"; 34 39 public void setSource(Object isource); 40 41 46 public Object getSource(); 47 48 53 public BaseEvent getRootEvent(); 54 55 60 public void setEventExtension(String iext); 61 62 67 public String getEventExtension(); 68 69 73 public void setParam(String key, String val); 74 75 78 public void setParam(String key, String [] val); 79 80 83 public Map getParams(); 84 86 91 public void setHandled(boolean val); 92 93 98 public boolean isHandled(); 99 100 106 public void addListenerID(String id); 107 108 114 public List getListenerIDs(); 115 116 122 public String getEventID(); 123 124 129 public String getEventIDWithExtension(); 130 131 137 public String getEventURL(); 139 144 public long getTimestamp(); 145 146 149 public void touch(); 150 151 154 public void reset(); 155 } 156 | Popular Tags |