⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tool.java

📁 jawe的最新版本,基于Java的图形化工作流编辑器。图形化工作流编辑器 。使用JAVA语言开发
💻 JAVA
字号:
package org.enhydra.shark.xpdl.elements;import org.enhydra.shark.xpdl.XMLAttribute;import org.enhydra.shark.xpdl.XMLCollectionElement;import org.enhydra.shark.xpdl.XPDLConstants;/** *  Represents coresponding element from XPDL schema. *  *  @author Sasa Bojanic */public class Tool extends XMLCollectionElement {   public Tool (Tools parent){      super(parent, true);   }   protected void fillStructure () {      XMLAttribute attrType=new XMLAttribute(this,"Type",            false,new String[] {               XPDLConstants.TOOL_TYPE_NONE,               XPDLConstants.TOOL_TYPE_APPLICATION,               XPDLConstants.TOOL_TYPE_PROCEDURE            }, 0);      ActualParameters refActualParameters=new ActualParameters(this); // min=0      Description refDescription=new Description(this); // min=0      ExtendedAttributes refExtendedAttributes=new ExtendedAttributes(this); // min=0      super.fillStructure();      add(attrType);      add(refActualParameters);      add(refDescription);            add(refExtendedAttributes);         }   public XMLAttribute getTypeAttribute() {      return (XMLAttribute)get("Type");   }      public String getType () {      return getTypeAttribute().toValue();   }   public void setTypeNONE () {      getTypeAttribute().setValue(XPDLConstants.TOOL_TYPE_NONE);         }   public void setTypeAPPLICATION () {      getTypeAttribute().setValue(XPDLConstants.TOOL_TYPE_APPLICATION);   }   public void setTypePROCEDURE () {      getTypeAttribute().setValue(XPDLConstants.TOOL_TYPE_PROCEDURE);         }   public String getDescription() {      return get("Description").toValue();   }   public void setDescription(String description) {      set("Description",description);   }   public ActualParameters getActualParameters() {      return (ActualParameters)get("ActualParameters");   }   public ExtendedAttributes getExtendedAttributes() {      return (ExtendedAttributes)get("ExtendedAttributes");   }}

⌨️ 快捷键说明

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