|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.validate.ValidateLauncher
public class ValidateLauncher
Wrapper class for the Validate Tool. Class handles command-line parsing and querying, in addition to reporting setup.
Constructor Summary | |
---|---|
ValidateLauncher()
Constructor. |
Method Summary | |
---|---|
void |
displayHelp()
Displays tool usage. |
void |
displayVersion()
Displays the current version and disclaimer notice. |
void |
doValidation(Map<URL,String> checksumManifest)
Performs validation. |
Report |
getReport()
Gets the object representation of the Validation Report. |
static void |
main(String[] args)
Main class that launches the Validate Tool. |
org.apache.commons.cli.CommandLine |
parse(String[] args)
Parse the command-line arguments |
void |
printReportFooter()
Print the report footer. |
void |
query(org.apache.commons.cli.CommandLine line)
Query the command-line and process the command-line option flags set. |
void |
query(File configuration)
Query the configuration file. |
void |
setCatalogs(List<String> catalogs)
Set the catalogs. |
void |
setChecksumManifests(List<String> manifests)
Set the checksum manifests. |
void |
setForce(boolean value)
|
void |
setIntegrityCheck(boolean value)
|
void |
setModelVersion(String version)
Sets the model version to use during validation. |
void |
setRegExps(List<String> patterns)
Sets the list of file patterns to look for if traversing a directory. |
void |
setReport(File report)
Sets the report file. |
void |
setReportStyle(String style)
Set the output style for the report. |
void |
setSchemas(List<String> schemas)
Set the schemas. |
void |
setSchematrons(List<String> schematrons)
Set the schematrons. |
void |
setSeverity(int level)
Sets the severity level for the report. |
void |
setTargets(List<String> targets)
Set the target. |
void |
setTraverse(boolean value)
Sets the flag to enable/disable directory recursion. |
void |
setupReport()
Setup the report. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidateLauncher() throws TransformerConfigurationException
TransformerConfigurationException
Method Detail |
---|
public org.apache.commons.cli.CommandLine parse(String[] args) throws org.apache.commons.cli.ParseException
args
- The command-line arguments
org.apache.commons.cli.ParseException
- If an error occurred during parsing.public void query(org.apache.commons.cli.CommandLine line) throws Exception
line
- A CommandLine object containing the flags that were set.
Exception
- If an error occurred while processing the
command-line options.public void query(File configuration) throws org.apache.commons.configuration.ConfigurationException
configuration
- A configuration file.
org.apache.commons.configuration.ConfigurationException
- If an error occurred while querying
the configuration file.public void setTargets(List<String> targets) throws MalformedURLException
targets
- A list of targets.
MalformedURLException
public void setChecksumManifests(List<String> manifests) throws MalformedURLException
manifests
- A list of checksum manifest files.
MalformedURLException
public void setSchemas(List<String> schemas) throws MalformedURLException
schemas
- A list of schemas.
MalformedURLException
public void setSchematrons(List<String> schematrons) throws MalformedURLException
schematrons
- A list of schematrons.
MalformedURLException
public void setCatalogs(List<String> catalogs)
catalogs
- A list of catalogs.public void setReport(File report)
report
- A report file.public Report getReport()
public void setReportStyle(String style) throws Exception
style
- 'sum' for a summary report, 'min' for a minimal report,
and 'full' for a full report
ApplicationException
Exception
public void setTraverse(boolean value)
value
- A boolean value.public void setSeverity(int level)
level
- An interger value.public void setRegExps(List<String> patterns)
patterns
- A list of file patterns.public void setModelVersion(String version)
version
- The model version.public void setForce(boolean value)
public void setIntegrityCheck(boolean value)
public void displayHelp()
public void displayVersion() throws IOException
IOException
- If there was an error that occurred while
getting the tool information.public void setupReport() throws IOException
IOException
- If an error occurred while setting up the report.public void doValidation(Map<URL,String> checksumManifest) throws Exception
Exception
public void printReportFooter()
public static void main(String[] args) throws TransformerConfigurationException
args
- A list of command-line arguments.
TransformerConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |