![JAR search and dependency download from the Maven repository](/logo.png)
gov.nih.nlm.nls.lvg.CmdLineSyntax.package.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lvg2010dist Show documentation
Show all versions of lvg2010dist Show documentation
LVG tools is used by Apache cTAKES.
The newest version!
Provides Java classes necessary to create a command line system.
This package provides an API for build a command line system (up to five levels).
Basically, a command is composed of program and options. An option is a linked list composed of option items. An option item composed by option flags and option arguments.
Features
Bellows are some features of this package:
- The system option can be flexibly assigned by defining a String.
- The syntax of an input command can be checked automatically by the system.
- Possible command(s) will be suggested by the system if there is an error on the input option. Two types of system options are suggested:
- An optionItem with same level as the input option where first error happens.
- An optionItem includes the input option item where error happens.
- Each optionFlag has two names, abbreviation and full name.
- Provides methods for converting abbreviation name and full name of flags for optinItem.
- Provides methods of printing hierarchy structure of a given option.
- Provides methods of printing all optionItems.
Usage
- Includes this package (import Lvg.CmdLineSyntax.*)
- Create a class, e.g. foo, and make it extends SystemOption (refer to OptionTest)
- Define the system option flag by defining an option string in DefineFlag().
- Define all flag full name (if any) in DefineFlag() in foo.
- Define what to do for each option in ExecuteCommand() in foo.
- Define main() in foo.
- Define help menu for each option if needed.
Related Documents
@since 2002
© 2015 - 2025 Weber Informatics LLC | Privacy Policy