Package com.saperion.wf
Class CommandInfoImpl
- java.lang.Object
-
- com.saperion.wf.CommandInfoImpl
-
- All Implemented Interfaces:
CommandInfo
,java.io.Serializable
public class CommandInfoImpl extends java.lang.Object implements CommandInfo
- Author:
- rbo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandInfoImpl(SaWFConstants.CommandId cmd, java.lang.String desc, boolean isEnabled, int trans)
CommandInfoImpl(SaWFConstants.CommandId cmd, java.lang.String desc, boolean isEnabled, int trans, boolean reasonRequired, boolean nextReceiverRequired)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
SaWFConstants.CommandId
getCommand()
int
getTransition()
java.lang.String
getTransitionDescription()
int
hashCode()
boolean
isEnabled()
boolean
isNextReceiverRequired()
boolean
isReasonRequired()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CommandInfoImpl
public CommandInfoImpl(SaWFConstants.CommandId cmd, java.lang.String desc, boolean isEnabled, int trans)
-
CommandInfoImpl
public CommandInfoImpl(SaWFConstants.CommandId cmd, java.lang.String desc, boolean isEnabled, int trans, boolean reasonRequired, boolean nextReceiverRequired)
Constructor.- Parameters:
cmd
- Commanddesc
- DescriptionisEnabled
- Is enabledtrans
-reasonRequired
-nextReceiverRequired
-
-
-
Method Detail
-
getCommand
public SaWFConstants.CommandId getCommand()
- Specified by:
getCommand
in interfaceCommandInfo
- Returns:
- the command
- See Also:
CommandInfo.getCommand()
-
getTransition
public int getTransition()
- Specified by:
getTransition
in interfaceCommandInfo
- Returns:
- the transition
- See Also:
CommandInfo.getTransition()
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceCommandInfo
- Returns:
- the enabled
- See Also:
CommandInfo.isEnabled()
-
getTransitionDescription
public java.lang.String getTransitionDescription()
- Specified by:
getTransitionDescription
in interfaceCommandInfo
- Returns:
- the description of the transition
- See Also:
CommandInfo.getTransitionDescription()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
isReasonRequired
public boolean isReasonRequired()
- Specified by:
isReasonRequired
in interfaceCommandInfo
- Returns:
- whether the user has to give a reason to invoking this command
-
isNextReceiverRequired
public boolean isNextReceiverRequired()
- Specified by:
isNextReceiverRequired
in interfaceCommandInfo
- Returns:
- whether the user has to select the next receiver
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-