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 12 public class RedefinableHeader extends XMLComplexElement { 13 14 public RedefinableHeader (Package 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 [] { 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); Version refVersion=new Version(this); Codepage refCodepage=new Codepage(this); Countrykey refCountrykey=new Countrykey(this); Responsibles refResponsibles=new Responsibles(this); 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 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 getAuthor() { 63 return get("Author").toValue(); 64 } 65 public void setAuthor(String author) { 66 set("Author",author); 67 } 68 public String getVersion() { 69 return get("Version").toValue(); 70 } 71 public void setVersion(String version) { 72 set("Version",version); 73 } 74 public String getCodepage() { 75 return get("Codepage").toValue(); 76 } 77 public void setCodepage(String codepage) { 78 set("Codepage",codepage); 79 } 80 public String getCountrykey() { 81 return get("Countrykey").toValue(); 82 } 83 public void setCountrykey(String countrykey) { 84 set("Countrykey",countrykey); 85 } 86 public Responsibles getResponsibles() { 87 return (Responsibles)get("Responsibles"); 88 } 89 90 } 91 | Popular Tags |