1 18 19 package org.objectweb.kilim.description; 20 21 import java.util.Iterator ; 22 23 import org.objectweb.kilim.KilimException; 24 25 28 public class EventSource implements BasicElement { 29 30 public static final EventSource EVENT_SOURCE = new EventSource(); 31 32 private EventSource() { } 33 34 37 public boolean isEventSource() { 38 return true; 39 } 40 41 44 public boolean providesValue() { 45 return true; 46 } 47 48 51 public boolean performsAction() { 52 return false; 53 } 54 55 58 public TemplateDescription getContainingTemplate() { 59 return null; 60 } 61 62 65 public Iterator getTemplateDefHierarchy() { 66 return KILIM.EMPTY_ITERATOR; 67 } 68 69 72 public void setContainingTemplate(TemplateDescription aTemplate) throws KilimException { } 73 74 77 public int getKind() { 78 return KILIM.EVENT_SOURCE; 79 } 80 81 84 public Object clone() { 85 return this; 86 } 87 } 88 89 103 | Popular Tags |