java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.actions.ActionContext |
Context of pre-execution and execution for an action
. These objects are provided
by a client (front-end) to the plugin (engines) when trying to:
verify execution
: the client checks
if an action execution can take placeprepare for execution
:
the client may provide pre-execution information, the engine will provide pre-execution
information as wellexecute an action
: the
client provides input data required by the plugin to perform the actionIInteractiveUnit
process these objects in two ways.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ActionContext(IInteractiveUnit unit, int actionId, long itemId)
Create an object, requesting action information for the provided item or provided address.
| |||||||||||
ActionContext(IInteractiveUnit unit, int actionId, long itemId, String address)
Create an object, requesting action information for the provided item or provided address.
| |||||||||||
ActionContext(IInteractiveUnit unit, int actionId, long itemId, String address, AddressConversionPrecision precision)
Create an object, requesting action information for the provided item or provided address.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getActionId()
Get the action identifier.
| ||||||||||
String |
getAddress()
Get the address at which the action should take place.
| ||||||||||
AddressConversionPrecision | getAddressPrecision() | ||||||||||
long |
getItemId()
Get the item id of the object onto which the action should take place.
| ||||||||||
IInteractiveUnit |
getUnit()
Get the unit on to which the action is to be executed.
| ||||||||||
void | setActionId(int actionId) | ||||||||||
void | setAddress(String address) | ||||||||||
void | setAddressPrecision(AddressConversionPrecision addressPrecision) | ||||||||||
void | setItemId(long itemId) | ||||||||||
void | setUnit(IInteractiveUnit unit) | ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create an object, requesting action information for the provided item or provided address.
unit | mandatory target unit |
---|---|
actionId | mandatory action id |
itemId | optional item id (0 for none) |
Create an object, requesting action information for the provided item or provided address.
Create an object, requesting action information for the provided item or provided address.
unit | mandatory target unit |
---|---|
actionId | mandatory action id |
itemId | optional item id (0 for none) |
address | optional address (null fo none) |
precision | precision of the address |
Get the action identifier.
Get the address at which the action should take place.
Get the item id of the object onto which the action should take place.
Get the unit on to which the action is to be executed.