org.pdfsam.console.business
Class ConsoleServicesFacade
java.lang.Object
org.pdfsam.console.business.ConsoleServicesFacade
public class ConsoleServicesFacade
- extends java.lang.Object
Facade for the console services
- Author:
- Andrea Vacondio
Field Summary |
static java.lang.String |
CREATOR
|
static java.lang.String |
VERSION
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
CREATOR
public static final java.lang.String CREATOR
- See Also:
- Constant Field Values
ConsoleServicesFacade
public ConsoleServicesFacade()
execute
public void execute(AbstractParsedCommand parsedCommand)
throws ConsoleException
- execute parsedCommand
- Parameters:
parsedCommand
-
- Throws:
ConsoleException.
ConsoleException
parseAndValidate
public AbstractParsedCommand parseAndValidate(java.lang.String[] inputArguments)
throws java.lang.Exception
- parse and validate the input arguments
- Parameters:
inputArguments
- input string arguments
- Returns:
- the parsed command
- Throws:
Exception.
java.lang.Exception
addExecutionObserver
public void addExecutionObserver(java.util.Observer observer)
throws java.lang.NullPointerException
- Adds an observer that observe the execution. No duplicate allowed.
- Parameters:
observer
-
- Throws:
java.lang.NullPointerException
- if the observer is null
getLicense
public static java.lang.String getLicense()
- Returns:
- the License String