01: package org.enhydra.shark.xpdl.elements;
02:
03: import org.enhydra.shark.xpdl.XMLComplexElement;
04:
05: /**
06: * Represents coresponding element from XPDL schema.
07: *
08: * @author Sasa Bojanic
09: */
10: public class PackageHeader extends XMLComplexElement {
11:
12: public PackageHeader(Package parent) {
13: super (parent, false);
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 getCostUnit() {
35: return get("CostUnit").toValue();
36: }
37:
38: public void setCostUnit(String costUnit) {
39: set("CostUnit", costUnit);
40: }
41:
42: public String getCreated() {
43: return get("Created").toValue();
44: }
45:
46: public void setCreated(String created) {
47: set("Created", created);
48: }
49:
50: public String getDescription() {
51: return get("Description").toValue();
52: }
53:
54: public void setDescription(String description) {
55: set("Description", description);
56: }
57:
58: public String getDocumentation() {
59: return get("Documentation").toValue();
60: }
61:
62: public void setDocumentation(String documentation) {
63: set("Documentation", documentation);
64: }
65:
66: public String getPriorityUnit() {
67: return get("PriorityUnit").toValue();
68: }
69:
70: public void setPriorityUnit(String priorityUnit) {
71: set("PriorityUnit", priorityUnit);
72: }
73:
74: public String getVendor() {
75: return get("Vendor").toValue();
76: }
77:
78: public void setVendor(String vendor) {
79: set("Vendor", vendor);
80: }
81:
82: public String getXPDLVersion() {
83: return get("XPDLVersion").toValue();
84: }
85:
86: public void setXPDLVersion(String xpdlVersion) {
87: set("XPDLVersion", xpdlVersion);
88: }
89: }
|