public abstract class Command extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
commandUUID
UUID de la commande.
|
protected String |
comment
Command comment.
|
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
abstract void |
doCommand(Project project,
AbstractDataContainer container)
Do command on project.
|
abstract void |
fromStringRepresentation(String representation)
Init command from string representation.
|
String |
getCommandUUID()
UUID de la commande.
|
String |
getComment()
Command comment.
|
abstract String |
getDescription(Project project,
AbstractDataContainer container)
Return human readable string for ui display (used in selection replay,
and undo redo commands).
|
abstract String |
getLogString(Project project,
AbstractDataContainer container)
Return human readable string for log output.
|
void |
setCommandUUID(String commandUUID)
UUID de la commande.
|
void |
setComment(String comment)
Command comment.
|
abstract String |
toStringRepresentation()
Get command argument string representation.
|
abstract void |
undoCommand(Project project,
AbstractDataContainer container)
Undo command on project.
|
protected String commandUUID
protected String comment
public String getCommandUUID()
UUID
public void setCommandUUID(String commandUUID)
commandUUID
- new uuidUUID
public String getComment()
public void setComment(String comment)
comment
- command commentpublic abstract void doCommand(Project project, AbstractDataContainer container) throws CoserBusinessException
project
- projectcontainer
- containerCoserBusinessException
public abstract void undoCommand(Project project, AbstractDataContainer container) throws CoserBusinessException
project
- projectcontainer
- containerCoserBusinessException
public abstract String toStringRepresentation()
public abstract void fromStringRepresentation(String representation)
representation
- string command representationpublic abstract String getLogString(Project project, AbstractDataContainer container)
project
- used to convert species codecontainer
- rarement utile, mais dans certains cas, sert a avoir les
vrais valeur de champs au lieu des noms techniquespublic abstract String getDescription(Project project, AbstractDataContainer container)
project
- used to convert species codecontainer
- rarement utile, mais dans certains cas, sert a avoir les
vrais valeur de champs au lieu des noms techniquesCopyright © 2010–2015 Ifremer. All rights reserved.