KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > xml > elements > ProcessHeader


1 /* ProcessHeader.java
2  *
3  * Authors:
4  * Stefanovic Nenad chupo@iis.ns.ac.yu
5  * Bojanic Sasa sasaboy@neobee.net
6  * Puskas Vladimir vpuskas@eunet.yu
7  * Pilipovic Goran zboniek@uns.ac.yu
8  *
9  */

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 /**
21 * Represents a WfMC DTD element that has the similar name.
22 *
23 * @see XML
24 */

25 public class ProcessHeader extends XMLComplexElement {
26    private Created refCreated=new Created(); // min=0
27
private Description refDescription=new Description(); // min=0
28
private Priority refPriority=new Priority(); // min=0
29
private Limit refLimit=new Limit(); // min=0
30
private ValidFrom refValidFrom=new ValidFrom(); // min=0
31
private ValidTo refValidTo=new ValidTo(); // min=0
32
private TimeEstimation refTimeEstimation=new TimeEstimation(); // min=0
33

34    private XMLAttribute attrDurationUnit=new XMLAttribute("DurationUnit",
35       new String JavaDoc[] {
36          "",
37          "Y",
38          "M",
39          "D",
40          "h",
41          "m",
42          "s"
43       },3);
44
45    /**
46    * Creates a new instance of the class.
47    *
48    */

49    public ProcessHeader () {
50       super();
51
52       fillStructure();
53    }
54
55    /**
56    * Defines the super-class method. Read the explanation for
57    * this method within XMLComplexElement class.
58    */

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