KickJava   Java API By Example, From Geeks To Geeks.

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


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

12 public class RedefinableHeader extends XMLComplexElement {
13
14    public RedefinableHeader (Package JavaDoc parent) {
15       super(parent, false);
16    }
17
18    public RedefinableHeader (WorkflowProcess parent) {
19       super(parent, false);
20    }
21
22    protected void fillStructure () {
23       XMLAttribute attrPublicationStatus=new XMLAttribute(this,"PublicationStatus",
24             false,new String JavaDoc[] {
25                "",
26                XPDLConstants.PUBLICATION_STATUS_UNDER_REVISION,
27                XPDLConstants.PUBLICATION_STATUS_RELEASED,
28                XPDLConstants.PUBLICATION_STATUS_UNDER_TEST
29             }, 0);
30       Author refAuthor=new Author(this); // min=0
31
Version refVersion=new Version(this); // min=0
32
Codepage refCodepage=new Codepage(this); // min=0
33
Countrykey refCountrykey=new Countrykey(this); // min=0
34
Responsibles refResponsibles=new Responsibles(this); // min=0
35

36       add(attrPublicationStatus);
37       add(refAuthor);
38       add(refVersion);
39       add(refCodepage);
40       add(refCountrykey);
41       add(refResponsibles);
42    }
43
44    public XMLAttribute getPublicationStatusAttribute() {
45       return (XMLAttribute)get("PublicationStatus");
46    }
47    public String JavaDoc getPublicationStatus() {
48       return getPublicationStatusAttribute().toValue();
49    }
50    public void setPublicationStatusNONE() {
51       getPublicationStatusAttribute().setValue("");
52    }
53    public void setPublicationStatusUNDER_REVISION() {
54       getPublicationStatusAttribute().setValue(XPDLConstants.PUBLICATION_STATUS_UNDER_REVISION);
55    }
56    public void setPublicationStatusRELEASED() {
57       getPublicationStatusAttribute().setValue(XPDLConstants.PUBLICATION_STATUS_RELEASED);
58    }
59    public void setPublicationStatusUNDER_TEST() {
60       getPublicationStatusAttribute().setValue(XPDLConstants.PUBLICATION_STATUS_UNDER_TEST);
61    }
62    public String JavaDoc getAuthor() {
63       return get("Author").toValue();
64    }
65    public void setAuthor(String JavaDoc author) {
66       set("Author",author);
67    }
68    public String JavaDoc getVersion() {
69       return get("Version").toValue();
70    }
71    public void setVersion(String JavaDoc version) {
72       set("Version",version);
73    }
74    public String JavaDoc getCodepage() {
75       return get("Codepage").toValue();
76    }
77    public void setCodepage(String JavaDoc codepage) {
78       set("Codepage",codepage);
79    }
80    public String JavaDoc getCountrykey() {
81       return get("Countrykey").toValue();
82    }
83    public void setCountrykey(String JavaDoc countrykey) {
84       set("Countrykey",countrykey);
85    }
86    public Responsibles getResponsibles() {
87       return (Responsibles)get("Responsibles");
88    }
89    
90 }
91
Popular Tags