deadline.java

来自「jawe的最新版本,基于Java的图形化工作流编辑器。图形化工作流编辑器 。使用」· Java 代码 · 共 61 行

JAVA
61
字号
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 Deadline extends XMLComplexElement {   public Deadline (Deadlines parent) {      super(parent, true);   }   protected void fillStructure () {      DeadlineCondition refDeadlineCondition=new DeadlineCondition(this); // min=1, max=1      ExceptionName refExceptionName=new ExceptionName(this); // min=1, max=1      XMLAttribute attrExecution=new XMLAttribute(this,"Execution",         false,new String[] {            XPDLConstants.EXECUTION_NONE,            XPDLConstants.EXECUTION_ASYNCHR,            XPDLConstants.EXECUTION_SYNCHR         }, 0);      add(attrExecution);      add(refDeadlineCondition);      add(refExceptionName);   }   public XMLAttribute getExecutionAttribute () {      return (XMLAttribute)get("Execution");   }   public String getExecution() {      return getExecutionAttribute().toValue();   }   public void setExecutionNONE() {      getExecutionAttribute().setValue(XPDLConstants.EXECUTION_NONE);   }   public void setExecutionASYNCHR() {      getExecutionAttribute().setValue(XPDLConstants.EXECUTION_ASYNCHR);   }   public void setExecutionSYNCHR() {      getExecutionAttribute().setValue(XPDLConstants.EXECUTION_SYNCHR);   }      public String getDeadlineCondition() {      return get("DeadlineCondition").toValue();   }   public void setDeadlineCondition(String deadlineCondition) {      set("DeadlineCondition",deadlineCondition);   }   public String getExceptionName() {      return get("ExceptionName").toValue();   }   public void setExceptionName(String exceptionName) {      set("ExceptionName",exceptionName);   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?