Package org.daisy.braille.ui
Class BasicUI
java.lang.Object
org.daisy.cli.AbstractUI
org.daisy.braille.ui.BasicUI
Provides a basic command line UI for core functionality in
org.daisy.braille.
- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
Nested classes/interfaces inherited from class org.daisy.cli.AbstractUI
AbstractUI.Argument, AbstractUI.Definition, AbstractUI.ExitCode, AbstractUI.OptionalArgument
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.daisy.cli.AbstractUI
ARG_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the name for the UIGets optional argumentsGets required argumentsstatic void
Command line entry pointvoid
run()
Runs the application.void
setPluginsDir
(File dir) Sets the context class loader to an URLClassLoader containing the jars found in the specified path.Methods inherited from class org.daisy.cli.AbstractUI
displayHelp, exitWithCode, exitWithCode, expandShortForm, getDefinitionList, getOptional, getRequired, setKeyValueDelimiter, setOptionalArgumentPrefix, toMap
-
Field Details
-
emboss
- See Also:
-
text2pef
- See Also:
-
pef2text
- See Also:
-
validate
- See Also:
-
split
- See Also:
-
merge
- See Also:
-
generate
- See Also:
-
list
- See Also:
-
-
Constructor Details
-
BasicUI
Creates a new Basic UI- Parameters:
args
- the application arguments
-
-
Method Details
-
setPluginsDir
Sets the context class loader to an URLClassLoader containing the jars found in the specified path.- Parameters:
dir
- the directory to search for jar-files.
-
run
Runs the application.- Throws:
Exception
- if something bad happens
-
main
Command line entry point- Parameters:
args
- the application arguments- Throws:
Exception
-
getName
Description copied from class:AbstractUI
Gets the name for the UI- Specified by:
getName
in classAbstractUI
- Returns:
- returns the UI name
-
getRequiredArguments
Description copied from class:AbstractUI
Gets required arguments- Specified by:
getRequiredArguments
in classAbstractUI
- Returns:
- returns a list of required arguments that can be passed to the UI on startup
-
getOptionalArguments
Description copied from class:AbstractUI
Gets optional arguments- Specified by:
getOptionalArguments
in classAbstractUI
- Returns:
- returns a list of optional arguments that can be passed to the UI on startup
-