|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.ltdt.gui.LTDTool
public class LTDTool
Field Summary |
---|
Fields inherited from interface gov.nasa.pds.ltdt.commandLine.LTDTFlags |
---|
PROJDIR, WHATIS_DICT, WHATIS_PROJDIR |
Fields inherited from interface gov.nasa.pds.tools.flags.ToolsFlags |
---|
ARGNAME, CONFIG, DICT, HELP, LONG, REPORT, SHORT, VERSION, WHATIS_CONFIG, WHATIS_HELP, WHATIS_REPORT, WHATIS_VERSION |
Fields inherited from interface gov.nasa.pds.tools.license.ToolsLicense |
---|
LICENSE |
Constructor Summary | |
---|---|
LTDTool()
Constructor |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
org.apache.commons.cli.CommandLine |
parse(java.lang.String[] args)
Parses the command line |
java.util.HashMap |
query(org.apache.commons.cli.CommandLine cmd)
Finds the different flag options specified during the execution run. |
void |
readConfig(java.net.URL url)
Reads a configuration file if it was passed into the tool. |
void |
setDict(java.util.List dictionaries)
Set the list of dictionaries. |
void |
setProjDir(java.io.File p)
Set the project directory. |
void |
showHelp(org.apache.commons.cli.Options opts)
Display LTDTool usage. |
void |
showVersion()
Show the version and disclaimer notice for LTDTool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LTDTool()
Method Detail |
---|
public void showVersion() throws java.io.IOException
java.io.IOException
public void showHelp(org.apache.commons.cli.Options opts)
public void setDict(java.util.List dictionaries) throws java.net.MalformedURLException, java.io.IOException
dictionaries
- A list of data dictionary files.
java.io.IOException
- Gets thrown if there was an invalid dictionary URL
java.net.MalformedURLException
public void setProjDir(java.io.File p) throws java.io.IOException
p
- The project directory.
java.io.IOException
- If the project directory does not exist.public org.apache.commons.cli.CommandLine parse(java.lang.String[] args) throws org.apache.commons.cli.ParseException
args
- The arguments specified on the command line.
org.apache.commons.cli.ParseException
- Thrown if there was an invalid argument
specified.public java.util.HashMap query(org.apache.commons.cli.CommandLine cmd) throws org.apache.commons.configuration.ConfigurationException, org.apache.commons.configuration.ConversionException, java.io.IOException
cmd
- Contains the option values specified on the command line.
org.apache.commons.configuration.ConfigurationException
- Throws exception if a configuration
file was specified and there was a problem during reading of the file.
java.io.IOException
org.apache.commons.configuration.ConversionException
public void readConfig(java.net.URL url) throws org.apache.commons.configuration.ConfigurationException, org.apache.commons.configuration.ConversionException, java.io.IOException
url
- The URL supplied by the user.
org.apache.commons.configuration.ConfigurationException
- If there was a problem reading the file.
org.apache.commons.configuration.ConversionException
- If there was an invalid value entered for a
property.
java.io.IOException
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |