1 package org.objectweb.kilim.description; 2 3 import org.objectweb.kilim.KilimException; 4 5 8 public class ClassSource extends InlinedElement { 9 private String className; 10 11 17 public ClassSource(String aClassName, TemplateDescription aTemplate) throws KilimException { 18 super(true, false, aTemplate); 19 if (aClassName == null) { 20 throw new KilimException("illegal null class name in template " + aTemplate.getName()); 21 } 22 className = aClassName; 23 } 24 25 29 public String getClassName() { 30 return className; 31 } 32 33 38 public void setClassName(String aClassName) throws KilimException { 39 if (aClassName == null) { 40 throw new KilimException("attempt to set a null class name to a class source " + className + " in template " + getContainingTemplate().getName()); 41 } 42 className = aClassName; 43 } 44 45 48 public int getKind() { 49 return KILIM.CLASS; 50 } 51 } 52 53 | Popular Tags |