Modifier and Type | Class and Description |
---|---|
static class |
LoadAction.LoadType
Enumeration of load types indicating the data which is to be loaded.
|
Constructor and Description |
---|
LoadAction(LoadAction.LoadType type,
String name,
String filename) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Causes this action to begin execution.
|
Exception |
getException()
Returns the exception which has been occurred if existing.
|
boolean |
hasExceptionOccured()
Returns
true if an exception has been occurred during
the execution of this action. |
public LoadAction(LoadAction.LoadType type, String name, String filename) throws FileNotFoundException
type
- the type of data object to be loadedname
- the name under which the loaded data object can be found in the repositoryfilename
- the filename of the file which will be loadedFileNotFoundException
- thrown if the file specified by the filename can not be foundpublic void execute()
Action
public boolean hasExceptionOccured()
IOAction
true
if an exception has been occurred during
the execution of this action.hasExceptionOccured
in interface IOAction
true
if an exception has been occurred, false
otherwisepublic Exception getException()
IOAction
getException
in interface IOAction
null
if no exception has been occurred