Interface Editor<T>
- Type Parameters:
- T- the type of the exported object
- All Superinterfaces:
- EditorAction
- All Known Implementing Classes:
- ListEditor,- ValueEditor
The Editor
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final EditorStringThe string of the message when the actor executes an invalid actionstatic final EditorStringThe string of the usage of the editor
- 
Method SummaryModifier and TypeMethodDescriptionactions()The map of all available actions of the editordefault Collection<String> complete(EditorActor actor, String[] args) Get the completion suggestions, given the argumentsdefault EditorStringGet the description of the actiondefault voidexecute(EditorActor actor, String[] args) Execute the actionexport(EditorActor actor) Export the object from the editorvoidMigrate from the objectvoidreset()Reset the editorstatus()Get an object representing the status of the editordefault EditorStringusage()Get the usage of the action
- 
Field Details- 
USAGEThe string of the usage of the editor
- 
INVALID_ACTIONThe string of the message when the actor executes an invalid action
 
- 
- 
Method Details- 
actionsMap<String,EditorAction> actions()The map of all available actions of the editor- Returns:
- the action map
 
- 
resetvoid reset()Reset the editor
- 
statusObject status()Get an object representing the status of the editor- Returns:
- the status
 
- 
exportExport the object from the editor- Parameters:
- actor- the actor
- Returns:
- the object if it's exported successfully, otherwise empty
 
- 
migrateMigrate from the object- Parameters:
- data- the object
 
- 
descriptionDescription copied from interface:EditorActionGet the description of the action- Specified by:
- descriptionin interface- EditorAction
- Returns:
- the description
 
- 
usageDescription copied from interface:EditorActionGet the usage of the action- Specified by:
- usagein interface- EditorAction
- Returns:
- the usage
 
- 
completeDescription copied from interface:EditorActionGet the completion suggestions, given the arguments- Specified by:
- completein interface- EditorAction
- Parameters:
- actor- the action
- args- the argument
- Returns:
- the suggestions
 
- 
executeDescription copied from interface:EditorActionExecute the action- Specified by:
- executein interface- EditorAction
- Parameters:
- actor- the actor
- args- the arguments
 
 
-