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 22 public class SimulationInformation extends XMLComplexElement { 23 private Cost refCost=new Cost(); 24 private TimeEstimation refTimeEstimation=new TimeEstimation(); 25 26 private XMLAttribute attrInstantiation=new XMLAttribute("Instantiation", 27 new String [] { 28 "", 29 "ONCE", 30 "MULTIPLE" 31 },0); 32 33 36 public SimulationInformation () { 37 super(); 38 39 fillStructure(); 40 } 41 42 46 protected void fillStructure () { 47 complexStructure.add(attrInstantiation); 48 attributes.add(attrInstantiation); 49 refCost.setRequired(true); 50 complexStructure.add(refCost); 51 refTimeEstimation.setRequired(true); 52 complexStructure.add(refTimeEstimation); 53 } 54 55 public void fromXML(Node node) { 56 attrInstantiation.setValue(""); 57 super.fromXML(node); 58 } 59 60 67 public Object clone () { 68 SimulationInformation s=(SimulationInformation)super.clone(); 69 70 s.attrInstantiation=(XMLAttribute)this.attrInstantiation.clone(); 71 s.refCost=(Cost)this.refCost.clone(); 72 s.refTimeEstimation=(TimeEstimation)this.refTimeEstimation.clone(); 73 74 s.fillStructure(); 75 76 return s; 77 } 78 79 80 } 81 | Popular Tags |