1 10 11 package org.enhydra.jawe.xml.elements; 12 13 import org.enhydra.jawe.xml.*; 14 import org.enhydra.jawe.xml.panels.*; 15 16 import java.util.*; 17 import java.text.*; 18 import org.w3c.dom.*; 19 20 25 public class ProcessHeader extends XMLComplexElement { 26 private Created refCreated=new Created(); private Description refDescription=new Description(); private Priority refPriority=new Priority(); private Limit refLimit=new Limit(); private ValidFrom refValidFrom=new ValidFrom(); private ValidTo refValidTo=new ValidTo(); private TimeEstimation refTimeEstimation=new TimeEstimation(); 34 private XMLAttribute attrDurationUnit=new XMLAttribute("DurationUnit", 35 new String [] { 36 "", 37 "Y", 38 "M", 39 "D", 40 "h", 41 "m", 42 "s" 43 },3); 44 45 49 public ProcessHeader () { 50 super(); 51 52 fillStructure(); 53 } 54 55 59 protected void fillStructure () { 60 complexStructure.add(attrDurationUnit); 61 attributes.add(attrDurationUnit); 62 complexStructure.add(refCreated); 63 complexStructure.add(refDescription); 64 complexStructure.add(refPriority); 65 complexStructure.add(refLimit); 66 complexStructure.add(refValidFrom); 67 complexStructure.add(refValidTo); 68 complexStructure.add(refTimeEstimation); 69 } 70 71 public void fromXML (Node node) { 72 attrDurationUnit.setValue(""); 73 refCreated.setValue(""); 74 super.fromXML(node); 75 } 76 77 } 78 | Popular Tags |