java.lang.Object | ||
↳ | com.pnfsoftware.jeb.core.actions.ActionData | |
↳ | com.pnfsoftware.jeb.core.actions.ActionRenameData |
This action class holds information for the RENAME
action.
Unit plugins may support rename actions on items to allow clients to rename those items.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ERRCODE_NAMING_CONFLICT | This error code may be set by plugins if the action failed because of a naming conflict (with naming conflict checks enforced). |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pnfsoftware.jeb.core.actions.ActionData
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ActionRenameData() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
canReuseObject()
Determine whether this action data object may be safely reused after a
reset()
invocation. | ||||||||||
String |
getCurrentName()
Get the current name.
| ||||||||||
String |
getNewName()
Get the new name.
| ||||||||||
String |
getOriginalName()
Get the original name.
| ||||||||||
boolean |
isBypassNameChecks()
Plugins may retrieve this optional flag to determine whether naming conflict checks may be
bypassed, if it is possible.
| ||||||||||
void |
reset()
Reset this action data object.
| ||||||||||
void |
setBypassNameChecks(boolean bypassNameConflictChecks)
Clients may set this optional flag to let the plugin know that naming conflict checks may be
bypassed, if it is possible.
| ||||||||||
void |
setCurrentName(String name)
Set the current name.
| ||||||||||
void |
setNewName(String name)
Set the new name.
| ||||||||||
void |
setOriginalName(String originalName)
Set the original name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pnfsoftware.jeb.core.actions.ActionData
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.actions.IActionData
|
This error code may be set by plugins if the action failed because of a naming conflict (with naming conflict checks enforced).
Determine whether this action data object may be safely reused after a reset()
invocation.
Get the current name. This method is used by clients.
Get the new name. This method is used by plugins.
Get the original name. This method is used by clients.
Plugins may retrieve this optional flag to determine whether naming conflict checks may be bypassed, if it is possible.
Reset this action data object. Sub-classes should override this method and invoke it as well.
Clients may set this optional flag to let the plugin know that naming conflict checks may be bypassed, if it is possible.
Set the current name. This method is used by plugins.
name | current name |
---|
Set the new name. This method is used by clients.
name | new name |
---|
Set the original name. This method is used by plugins.