org.pdfsam.console.business
Class ConsoleServicesFacade

java.lang.Object
  extended by 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
           
 
Constructor Summary
ConsoleServicesFacade()
           
 
Method Summary
 void addExecutionObserver(java.util.Observer observer)
          Adds an observer that observe the execution.
 void execute(AbstractParsedCommand parsedCommand)
          execute parsedCommand
static java.lang.String getLicense()
           
 AbstractParsedCommand parseAndValidate(java.lang.String[] inputArguments)
          parse and validate the input arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ConsoleServicesFacade

public ConsoleServicesFacade()
Method Detail

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