1 10 11 package org.enhydra.jawe.xml.elements; 12 13 import org.enhydra.jawe.xml.*; 14 import org.enhydra.jawe.xml.panels.*; 15 import org.w3c.dom.*; 16 17 20 public class Deadline extends XMLComplexElement { 21 private DeadlineCondition refDeadlineCondition=new DeadlineCondition(); private ExceptionName refExceptionName=new ExceptionName(); private XMLAttribute attrExecution=new XMLAttribute("Execution", 25 new String [] { 26 "", 27 "ASYNCHR", 28 "SYNCHR" 29 },1); 30 31 34 public Deadline () { 35 super(); 36 37 fillStructure (); 38 } 39 40 44 protected void fillStructure () { 45 complexStructure.add(attrExecution); 46 attributes.add(attrExecution); 47 refDeadlineCondition.setRequired(true); 48 complexStructure.add(refDeadlineCondition); 49 refExceptionName.setRequired(true); 50 complexStructure.add(refExceptionName); 51 } 52 53 54 public void fromXML (Node node) { 55 attrExecution.setValue(""); 56 super.fromXML(node); 57 } 58 59 65 public String toString () { 66 return refDeadlineCondition.toString(); 67 } 68 69 public Object toValue () { 70 return refDeadlineCondition.toValue(); 71 } 72 73 80 public Object clone () { 81 Deadline c=(Deadline)super.clone(); 82 83 c.attrExecution=(XMLAttribute)this.attrExecution.clone(); 84 c.refDeadlineCondition=(DeadlineCondition)this.refDeadlineCondition.clone(); 85 c.refExceptionName=(ExceptionName)this.refExceptionName.clone(); 86 c.fillStructure(); 87 88 return c; 89 } 90 91 } 92 | Popular Tags |