public abstract class AbstractAction extends java.lang.Object implements IAction
Constructor and Description |
---|
AbstractAction() |
Modifier and Type | Method and Description |
---|---|
void |
finished(MediaDirectory dir)
This is called once for each action after they have finished performing on all media files
within the media directory.
|
void |
init(MediaDirectory dir)
This is called once before any of the media files are processed to allow the action
to perform setup tasks
|
boolean |
isTestMode()
Used to find out if test mode is enabled
|
void |
performOnDirectory(MediaDirectory dir,
java.io.File file,
IActionEventHandler actionEventHandler)
This is called so the action can perform on directories within the media directory
|
protected java.lang.String |
resolvePatterns(MediaDirectory dir,
java.lang.String input,
IVideo video,
java.io.File mediaFile,
java.lang.Integer part) |
void |
setTestMode(boolean testMode)
Used to notify the action if test mode is enabled
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
perform, perform, setParameter
public void setTestMode(boolean testMode)
setTestMode
in interface IAction
testMode
- True if test mode is enabled, otherwise falsepublic boolean isTestMode()
isTestMode
in interface IAction
public void performOnDirectory(MediaDirectory dir, java.io.File file, IActionEventHandler actionEventHandler) throws ActionException
performOnDirectory
in interface IAction
dir
- The media directoryfile
- The directory the action is to perform onactionEventHandler
- Used to notify the action performer about changesActionException
- Thrown if their is a problem with the actionpublic void init(MediaDirectory dir) throws ActionException
init
in interface IAction
dir
- The media directoryActionException
- Thrown if their is a problem with the actionpublic void finished(MediaDirectory dir) throws ActionException
finished
in interface IAction
dir
- The media directoryActionException
- Thrown if their is a problem with the actionprotected java.lang.String resolvePatterns(MediaDirectory dir, java.lang.String input, IVideo video, java.io.File mediaFile, java.lang.Integer part) throws ActionException
ActionException