|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.app.CommandLineOptions
public class CommandLineOptions
Parses the commandline arguments.
Field Summary | |
---|---|
static int |
INPUT_FO
Constant indicating that the input is XSL-FO. |
static int |
INPUT_NOT_SET
Constant indicating that the input mode has not been set. |
static int |
INPUT_XSLT
Constant indicating that the input is XML + XSLT. |
Constructor Summary | |
---|---|
CommandLineOptions(org.apache.commons.cli.CommandLine parsedCommandLine)
Constructor. |
Method Summary | |
---|---|
URL |
getFOFile()
Returns the parsed FO file location. |
int |
getInputMode()
Returns the parsed input mode. |
String |
getLanguage()
Returns the parsed language. |
File |
getOutputFile()
Returns the parsed output file location. |
OutputTargetType |
getOutputMode()
Returns the output type specified on the command-line. |
OutputConfig |
getRendererOptions()
Returns the renderer options. |
SessionConfig |
getSessionConfig()
Returns the session configuration. |
Starter |
getStarter()
Returns the starter to use for starting the application. |
URL |
getUserConfigFile()
Returns the parsed user configuration file location. |
URL |
getXMLFile()
Returns the parsed XML file location. |
URL |
getXSLFile()
Returns the parsed XSLT stylesheet file location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INPUT_NOT_SET
public static final int INPUT_FO
public static final int INPUT_XSLT
Constructor Detail |
---|
public CommandLineOptions(org.apache.commons.cli.CommandLine parsedCommandLine) throws ConfigurationException
parsedCommandLine
- The command line parsed by Commons CLI.
This class assumes that these options are consistent with the command-line API.
If they are not, the results are undefined.
Any testing for consistency should be done upstream.
This does NOT mean, for example, that all URLs are valid, only that they are specified in the right place.
ConfigurationException
- For errors parsing options.Method Detail |
---|
public OutputTargetType getOutputMode()
public OutputConfig getRendererOptions()
public SessionConfig getSessionConfig()
public Starter getStarter() throws FOrayException
FOrayException
- For errors creating the starter.public int getInputMode()
public URL getFOFile()
public URL getXMLFile()
public URL getXSLFile()
public File getOutputFile()
public URL getUserConfigFile()
public String getLanguage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |