Package org.a11y.brlapi
Class Program
java.lang.Object
org.a11y.brlapi.Component
org.a11y.brlapi.ProgramComponent
org.a11y.brlapi.Program
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ApiToolCommand,Client,VersionProgram
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.a11y.brlapi.ProgramComponent
EXIT_CODE_EXTERNAL, EXIT_CODE_INTERNAL, EXIT_CODE_SEMANTIC, EXIT_CODE_SUCCESS, EXIT_CODE_SYNTAXFields inherited from class org.a11y.brlapi.Component
BYTE_MASK, UNICODE_BRAILLE_ROW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddOption(String name, Program.Option.Handler handler, String... operands) protected final voidaddOptionalParameters(String... parameters) protected final voidaddRepeatingParameter(String parameter) protected final voidaddRequiredParameters(String... parameters) protected voidextendUsageSummary(StringBuilder usage) final Stringfinal Stringfinal booleanisClient()protected voidonProgramException(ProgramException exception) protected voidprocessParameters(String[] parameters) final voidrun()protected abstract voidfinal ProgramsetProgramName(String name) protected final voidwriteProgramMessage(String format, Object... arguments) Methods inherited from class org.a11y.brlapi.ProgramComponent
isClient, isClientMethods inherited from class org.a11y.brlapi.Component
getObjectName, getObjectName, printf, toOperandName, toUnicodeBraille, toUnicodeBraille
-
Field Details
-
USAGE_OPTIONAL_BEGIN
public static final char USAGE_OPTIONAL_BEGIN- See Also:
-
USAGE_OPTIONAL_END
public static final char USAGE_OPTIONAL_END- See Also:
-
USAGE_REPEATING_INDICATOR
- See Also:
-
-
Constructor Details
-
Program
-
-
Method Details
-
runProgram
- Throws:
ProgramException
-
isClient
public final boolean isClient() -
getProgramName
-
setProgramName
-
writeProgramMessage
-
addOption
-
addRequiredParameters
-
addOptionalParameters
-
addRepeatingParameter
-
getPurpose
-
extendUsageSummary
-
getUsageSummary
-
processParameters
- Throws:
SyntaxException
-
onProgramException
-
run
public final void run()
-