KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > xpdl > elements > PackageHeader


1 package org.enhydra.shark.xpdl.elements;
2
3 import org.enhydra.shark.xpdl.XMLComplexElement;
4
5 /**
6  * Represents coresponding element from XPDL schema.
7  *
8  * @author Sasa Bojanic
9  */

10 public class PackageHeader extends XMLComplexElement {
11
12    public PackageHeader (Package JavaDoc parent) {
13       super(parent, true);
14    }
15
16    protected void fillStructure () {
17       XPDLVersion refXPDLVersion=new XPDLVersion(this);
18       Vendor refVendor=new Vendor(this);
19       Created refCreated=new Created(this);
20       Description refDescription=new Description(this); // min=0
21
Documentation refDocumentation=new Documentation(this); // min=0
22
PriorityUnit refPriorityUnit=new PriorityUnit(this); // min=0
23
CostUnit refCostUnit=new CostUnit(this); // min=0
24

25       add(refXPDLVersion);
26       add(refVendor);
27       add(refCreated);
28       add(refDescription);
29       add(refDocumentation);
30       add(refPriorityUnit);
31       add(refCostUnit);
32    }
33
34    public String JavaDoc getCostUnit() {
35       return get("CostUnit").toValue();
36    }
37    public void setCostUnit(String JavaDoc costUnit) {
38       set("CostUnit",costUnit);
39    }
40    public String JavaDoc getCreated() {
41       return get("Created").toValue();
42    }
43    public void setCreated(String JavaDoc created) {
44       set("Created",created);
45    }
46    public String JavaDoc getDescription() {
47       return get("Description").toValue();
48    }
49    public void setDescription(String JavaDoc description) {
50       set("Description",description);
51    }
52    public String JavaDoc getDocumentation() {
53       return get("Documentation").toValue();
54    }
55    public void setDocumentation(String JavaDoc documentation) {
56       set("Documentation",documentation);
57    }
58    public String JavaDoc getPriorityUnit() {
59       return get("PriorityUnit").toValue();
60    }
61    public void setPriorityUnit(String JavaDoc priorityUnit) {
62       set("PriorityUnit",priorityUnit);
63    }
64    public String JavaDoc getVendor() {
65       return get("Vendor").toValue();
66    }
67    public void setVendor(String JavaDoc vendor) {
68       set("Vendor",vendor);
69    }
70    public String JavaDoc getXPDLVersion() {
71       return get("XPDLVersion").toValue();
72    }
73    public void setXPDLVersion(String JavaDoc xpdlVersion) {
74       set("XPDLVersion",xpdlVersion);
75    }
76 }
77
Popular Tags