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

📄 activity.java

📁 一个工作流的原型
💻 JAVA
字号:
/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor cvs.0.9.6</a>, using an
 * XML Schema.
 * $Id$
 */

package workflow.xwfbox.process;

  //---------------------------------/
 //- Imported classes and packages -/
//---------------------------------/

import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import java.util.Enumeration;
import java.util.Vector;

/**
 * Class Activity.
 * 
 * @version $Revision$ $Date$
 */
public class Activity implements java.io.Serializable {


      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field _id
     */
    private java.lang.String _id;

    /**
     * Field _name
     */
    private java.lang.String _name;

    /**
     * Field _description
     */
    private java.lang.Object _description;

    /**
     * Field _limit
     */
    private java.lang.Object _limit;

    /**
     * Field _activityChoice
     */
    private workflow.xwfbox.process.Implementation _implementation;
    private workflow.xwfbox.process.BlockActivity _blockActivity;
    private String _route;

    /**
     * Field _performer
     */
    private java.lang.Object _performer;

    /**
     * Field _startMode
     */
    private java.lang.Object _startMode;

    /**
     * Field _finishMode
     */
    private java.lang.Object _finishMode;

    /**
     * Field _priority
     */
    private java.lang.Object _priority;

    /**
     * Field _deadlineList
     */
    private java.util.Vector _deadlineList;

    /**
     * Field _simulationInformation
     */
    private java.lang.Object _simulationInformation;

    /**
     * Field _icon
     */
    private java.lang.Object _icon;

    /**
     * Field _documentation
     */
    private java.lang.Object _documentation;

    /**
     * Field _transitionRestrictions
     */
    private java.lang.Object _transitionRestrictions;

    /**
     * Field _extendedAttributes
     */
    private java.lang.Object _extendedAttributes;


      //----------------/
     //- Constructors -/
    //----------------/

    public Activity() {
        super();
        _deadlineList = new Vector();
    } //-- workflow.xwfbox.process.Activity()


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method addDeadline
     * 
     * 
     * 
     * @param vDeadline
     */
    public void addDeadline(java.lang.Object vDeadline)
        throws java.lang.IndexOutOfBoundsException
    {
        _deadlineList.addElement(vDeadline);
    } //-- void addDeadline(java.lang.Object) 

    /**
     * Method addDeadline
     * 
     * 
     * 
     * @param index
     * @param vDeadline
     */
    public void addDeadline(int index, java.lang.Object vDeadline)
        throws java.lang.IndexOutOfBoundsException
    {
        _deadlineList.insertElementAt(vDeadline, index);
    } //-- void addDeadline(int, java.lang.Object) 

    /**
     * Method enumerateDeadline
     * 
     * 
     * 
     * @return Enumeration
     */
    public java.util.Enumeration enumerateDeadline()
    {
        return _deadlineList.elements();
    } //-- java.util.Enumeration enumerateDeadline() 

    /**
     * Returns the value of field 'activityChoice'.
     * 
     * @return ActivityChoice
     * @return the value of field 'activityChoice'.
     */
    public workflow.xwfbox.process.Implementation getImplementation()
    {
        return this._implementation;
    } //-- workflow.xwfbox.process.ActivityChoice getActivityChoice() 

    public workflow.xwfbox.process.BlockActivity getBlockActivity()
    {
        return this._blockActivity;
    } //-- workflow.xwfbox.process.ActivityChoice getActivityChoice() 

    public String getRoute()
    {
        return this._route;
    } //-- workflow.xwfbox.process.ActivityChoice getActivityChoice() 

    /**
     * Method getDeadline
     * 
     * 
     * 
     * @param index
     * @return Object
     */
    public java.lang.Object getDeadline(int index)
        throws java.lang.IndexOutOfBoundsException
    {
        //-- check bounds for index
        if ((index < 0) || (index > _deadlineList.size())) {
            throw new IndexOutOfBoundsException();
        }
        
        return (java.lang.Object) _deadlineList.elementAt(index);
    } //-- java.lang.Object getDeadline(int) 

    /**
     * Method getDeadline
     * 
     * 
     * 
     * @return Object
     */
    public java.lang.Object[] getDeadline()
    {
        int size = _deadlineList.size();
        java.lang.Object[] mArray = new java.lang.Object[size];
        for (int index = 0; index < size; index++) {
            mArray[index] = (java.lang.Object) _deadlineList.elementAt(index);
        }
        return mArray;
    } //-- java.lang.Object[] getDeadline() 

    /**
     * Method getDeadlineCount
     * 
     * 
     * 
     * @return int
     */
    public int getDeadlineCount()
    {
        return _deadlineList.size();
    } //-- int getDeadlineCount() 

    /**
     * Returns the value of field 'description'.
     * 
     * @return Object
     * @return the value of field 'description'.
     */
    public java.lang.Object getDescription()
    {
        return this._description;
    } //-- java.lang.Object getDescription() 

    /**
     * Returns the value of field 'documentation'.
     * 
     * @return Object
     * @return the value of field 'documentation'.
     */
    public java.lang.Object getDocumentation()
    {
        return this._documentation;
    } //-- java.lang.Object getDocumentation() 

    /**
     * Returns the value of field 'extendedAttributes'.
     * 
     * @return Object
     * @return the value of field 'extendedAttributes'.
     */
    public java.lang.Object getExtendedAttributes()
    {
        return this._extendedAttributes;
    } //-- java.lang.Object getExtendedAttributes() 

    /**
     * Returns the value of field 'finishMode'.
     * 
     * @return Object
     * @return the value of field 'finishMode'.
     */
    public java.lang.Object getFinishMode()
    {
        return this._finishMode;
    } //-- java.lang.Object getFinishMode() 

    /**
     * Returns the value of field 'icon'.
     * 
     * @return Object
     * @return the value of field 'icon'.
     */
    public java.lang.Object getIcon()
    {
        return this._icon;
    } //-- java.lang.Object getIcon() 

    /**
     * Returns the value of field 'id'.
     * 
     * @return String
     * @return the value of field 'id'.
     */
    public java.lang.String getId()
    {
        return this._id;
    } //-- java.lang.String getId() 

    /**
     * Returns the value of field 'limit'.
     * 
     * @return Object
     * @return the value of field 'limit'.
     */
    public java.lang.Object getLimit()
    {
        return this._limit;
    } //-- java.lang.Object getLimit() 

    /**
     * Returns the value of field 'name'.
     * 
     * @return String
     * @return the value of field 'name'.
     */
    public java.lang.String getName()
    {
        return this._name;
    } //-- java.lang.String getName() 

    /**
     * Returns the value of field 'performer'.
     * 
     * @return Object
     * @return the value of field 'performer'.
     */
    public java.lang.Object getPerformer()
    {
        return this._performer;
    } //-- java.lang.Object getPerformer() 

    /**
     * Returns the value of field 'priority'.
     * 
     * @return Object
     * @return the value of field 'priority'.
     */
    public java.lang.Object getPriority()
    {
        return this._priority;
    } //-- java.lang.Object getPriority() 

    /**
     * Returns the value of field 'simulationInformation'.
     * 
     * @return Object
     * @return the value of field 'simulationInformation'.
     */
    public java.lang.Object getSimulationInformation()
    {
        return this._simulationInformation;
    } //-- java.lang.Object getSimulationInformation() 

    /**
     * Returns the value of field 'startMode'.
     * 
     * @return Object
     * @return the value of field 'startMode'.
     */
    public java.lang.Object getStartMode()
    {
        return this._startMode;
    } //-- java.lang.Object getStartMode() 

    /**
     * Returns the value of field 'transitionRestrictions'.
     * 
     * @return Object
     * @return the value of field 'transitionRestrictions'.
     */
    public java.lang.Object getTransitionRestrictions()
    {
        return this._transitionRestrictions;
    } //-- java.lang.Object getTransitionRestrictions() 

    /**
     * Method removeAllDeadline
     * 
     */
    public void removeAllDeadline()
    {
        _deadlineList.removeAllElements();
    } //-- void removeAllDeadline() 

    /**
     * Method removeDeadline
     * 
     * 
     * 
     * @param index
     * @return Object
     */
    public java.lang.Object removeDeadline(int index)
    {
        java.lang.Object obj = _deadlineList.elementAt(index);
        _deadlineList.removeElementAt(index);
        return (java.lang.Object) obj;
    } //-- java.lang.Object removeDeadline(int) 

    /**
     * Sets the value of field 'activityChoice'.
     * 
     * @param activityChoice the value of field 'activityChoice'.
     */
    public void setImplementation(workflow.xwfbox.process.Implementation implementation)
    {
        this._implementation = implementation;
    } //-- void setActivityChoice(workflow.xwfbox.process.ActivityChoice) 

    public void setBlockActivity(workflow.xwfbox.process.BlockActivity blockActivity)
    {
        this._blockActivity = blockActivity;
    } //-- void setActivityChoice(workflow.xwfbox.process.ActivityChoice) 

    public void setRoute(String route)
    {
        this._route = route;
    } //-- void setActivityChoice(workflow.xwfbox.process.ActivityChoice) 

    /**
     * Method setDeadline
     * 
     * 
     * 
     * @param index
     * @param vDeadline
     */
    public void setDeadline(int index, java.lang.Object vDeadline)
        throws java.lang.IndexOutOfBoundsException
    {
        //-- check bounds for index
        if ((index < 0) || (index > _deadlineList.size())) {
            throw new IndexOutOfBoundsException();
        }
        _deadlineList.setElementAt(vDeadline, index);
    } //-- void setDeadline(int, java.lang.Object) 

    /**
     * Method setDeadline
     * 
     * 
     * 
     * @param deadlineArray
     */
    public void setDeadline(java.lang.Object[] deadlineArray)
    {
        //-- copy array
        _deadlineList.removeAllElements();
        for (int i = 0; i < deadlineArray.length; i++) {
            _deadlineList.addElement(deadlineArray[i]);
        }
    } //-- void setDeadline(java.lang.Object) 

    /**
     * Sets the value of field 'description'.
     * 
     * @param description the value of field 'description'.
     */
    public void setDescription(java.lang.Object description)
    {
        this._description = description;
    } //-- void setDescription(java.lang.Object) 

    /**
     * Sets the value of field 'documentation'.
     * 
     * @param documentation the value of field 'documentation'.
     */
    public void setDocumentation(java.lang.Object documentation)
    {
        this._documentation = documentation;
    } //-- void setDocumentation(java.lang.Object) 

    /**
     * Sets the value of field 'extendedAttributes'.
     * 
     * @param extendedAttributes the value of field
     * 'extendedAttributes'.
     */
    public void setExtendedAttributes(java.lang.Object extendedAttributes)
    {
        this._extendedAttributes = extendedAttributes;
    } //-- void setExtendedAttributes(java.lang.Object) 

    /**
     * Sets the value of field 'finishMode'.
     * 
     * @param finishMode the value of field 'finishMode'.
     */
    public void setFinishMode(java.lang.Object finishMode)
    {
        this._finishMode = finishMode;
    } //-- void setFinishMode(java.lang.Object) 

    /**
     * Sets the value of field 'icon'.
     * 
     * @param icon the value of field 'icon'.
     */
    public void setIcon(java.lang.Object icon)
    {
        this._icon = icon;
    } //-- void setIcon(java.lang.Object) 

    /**
     * Sets the value of field 'id'.
     * 
     * @param id the value of field 'id'.
     */
    public void setId(java.lang.String id)
    {
        this._id = id;
    } //-- void setId(java.lang.String) 

    /**
     * Sets the value of field 'limit'.
     * 
     * @param limit the value of field 'limit'.
     */
    public void setLimit(java.lang.Object limit)
    {
        this._limit = limit;
    } //-- void setLimit(java.lang.Object) 

    /**
     * Sets the value of field 'name'.
     * 
     * @param name the value of field 'name'.
     */
    public void setName(java.lang.String name)
    {
        this._name = name;
    } //-- void setName(java.lang.String) 

    /**
     * Sets the value of field 'performer'.
     * 
     * @param performer the value of field 'performer'.
     */
    public void setPerformer(java.lang.Object performer)
    {
        this._performer = performer;
    } //-- void setPerformer(java.lang.Object) 

    /**
     * Sets the value of field 'priority'.
     * 
     * @param priority the value of field 'priority'.
     */
    public void setPriority(java.lang.Object priority)
    {
        this._priority = priority;
    } //-- void setPriority(java.lang.Object) 

    /**
     * Sets the value of field 'simulationInformation'.
     * 
     * @param simulationInformation the value of field
     * 'simulationInformation'.
     */
    public void setSimulationInformation(java.lang.Object simulationInformation)
    {
        this._simulationInformation = simulationInformation;
    } //-- void setSimulationInformation(java.lang.Object) 

    /**
     * Sets the value of field 'startMode'.
     * 
     * @param startMode the value of field 'startMode'.
     */
    public void setStartMode(java.lang.Object startMode)
    {
        this._startMode = startMode;
    } //-- void setStartMode(java.lang.Object) 

    /**
     * Sets the value of field 'transitionRestrictions'.
     * 
     * @param transitionRestrictions the value of field
     * 'transitionRestrictions'.
     */
    public void setTransitionRestrictions(java.lang.Object transitionRestrictions)
    {
        this._transitionRestrictions = transitionRestrictions;
    } //-- void setTransitionRestrictions(java.lang.Object) 

}

⌨️ 快捷键说明

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