1 18 19 package org.objectweb.kilim.description; 20 21 import org.objectweb.kilim.KilimException; 22 23 28 public abstract class InlinedElement extends TemplateElementImpl implements BasicElement { 29 private boolean isProvider; 31 private boolean isTransformer; 32 private String name; 33 34 41 protected InlinedElement(boolean isP, boolean isT, TemplateDescription aTemplate) throws KilimException { 42 isProvider = isP; 43 isTransformer = isT; 44 setContainingTemplate(aTemplate); 45 name = "%inlined" + KILIM.getUniqueIndex(); 46 } 47 48 52 public String getLocalName() { 53 return name; 54 } 55 56 61 public void setLocalName(String aName) throws KilimException { 62 name = aName; 63 } 64 65 68 public void setStatus(int aStatus) throws KilimException { 69 throw new KilimException("attempt to set a status to an inlined element in template " + getContainingTemplate().getName()); 70 } 71 72 75 public int getStatus() throws KilimException { 76 throw new KilimException("attempt to get the status of an inlined element in template " + getContainingTemplate().getName()); 77 } 78 79 82 public boolean providesValue() { 83 return isProvider; 84 } 85 86 89 public boolean performsAction() { 90 return isTransformer; 91 } 92 93 96 public boolean isEventSource() { 97 return false; 98 } 99 } | Popular Tags |