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 booleanequals(java.lang.Object obj)SaWFConstants.CommandIdgetCommand()intgetTransition()java.lang.StringgetTransitionDescription()inthashCode()booleanisEnabled()booleanisNextReceiverRequired()booleanisReasonRequired()java.lang.StringtoString()
-
-
-
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:
getCommandin interfaceCommandInfo- Returns:
- the command
- See Also:
CommandInfo.getCommand()
-
getTransition
public int getTransition()
- Specified by:
getTransitionin interfaceCommandInfo- Returns:
- the transition
- See Also:
CommandInfo.getTransition()
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceCommandInfo- Returns:
- the enabled
- See Also:
CommandInfo.isEnabled()
-
getTransitionDescription
public java.lang.String getTransitionDescription()
- Specified by:
getTransitionDescriptionin interfaceCommandInfo- Returns:
- the description of the transition
- See Also:
CommandInfo.getTransitionDescription()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
isReasonRequired
public boolean isReasonRequired()
- Specified by:
isReasonRequiredin interfaceCommandInfo- Returns:
- whether the user has to give a reason to invoking this command
-
isNextReceiverRequired
public boolean isNextReceiverRequired()
- Specified by:
isNextReceiverRequiredin interfaceCommandInfo- Returns:
- whether the user has to select the next receiver
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-