📄 redefinableheader.java
字号:
package org.enhydra.shark.xpdl.elements;import org.enhydra.shark.xpdl.XMLAttribute;import org.enhydra.shark.xpdl.XMLComplexElement;import org.enhydra.shark.xpdl.XPDLConstants;/** * Represents coresponding element from XPDL schema. * * @author Sasa Bojanic */public class RedefinableHeader extends XMLComplexElement { public RedefinableHeader (Package parent) { super(parent, false); } public RedefinableHeader (WorkflowProcess parent) { super(parent, false); } protected void fillStructure () { XMLAttribute attrPublicationStatus=new XMLAttribute(this,"PublicationStatus", false,new String[] { XPDLConstants.PUBLICATION_STATUS_NONE, XPDLConstants.PUBLICATION_STATUS_UNDER_REVISION, XPDLConstants.PUBLICATION_STATUS_RELEASED, XPDLConstants.PUBLICATION_STATUS_UNDER_TEST }, 0); Author refAuthor=new Author(this); // min=0 Version refVersion=new Version(this); // min=0 Codepage refCodepage=new Codepage(this); // min=0 Countrykey refCountrykey=new Countrykey(this); // min=0 Responsibles refResponsibles=new Responsibles(this); // min=0 add(attrPublicationStatus); add(refAuthor); add(refVersion); add(refCodepage); add(refCountrykey); add(refResponsibles); } public XMLAttribute getPublicationStatusAttribute() { return (XMLAttribute)get("PublicationStatus"); } public String getPublicationStatus() { return getPublicationStatusAttribute().toValue(); } public void setPublicationStatusNONE() { getPublicationStatusAttribute().setValue(XPDLConstants.PUBLICATION_STATUS_NONE); } public void setPublicationStatusUNDER_REVISION() { getPublicationStatusAttribute().setValue(XPDLConstants.PUBLICATION_STATUS_UNDER_REVISION); } public void setPublicationStatusRELEASED() { getPublicationStatusAttribute().setValue(XPDLConstants.PUBLICATION_STATUS_RELEASED); } public void setPublicationStatusUNDER_TEST() { getPublicationStatusAttribute().setValue(XPDLConstants.PUBLICATION_STATUS_UNDER_TEST); } public String getAuthor() { return get("Author").toValue(); } public void setAuthor(String author) { set("Author",author); } public String getVersion() { return get("Version").toValue(); } public void setVersion(String version) { set("Version",version); } public String getCodepage() { return get("Codepage").toValue(); } public void setCodepage(String codepage) { set("Codepage",codepage); } public String getCountrykey() { return get("Countrykey").toValue(); } public void setCountrykey(String countrykey) { set("Countrykey",countrykey); } public Responsibles getResponsibles() { return (Responsibles)get("Responsibles"); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -