jpl.pds.parser
Class ValidateLabelHandler
java.lang.Object
jpl.pds.parser.ValidateLabelHandler
public class ValidateLabelHandler
- extends Object
Handle product validation request.
1) Read product file into StringBuffer. Insert any referenced files.
2) Validate product file using Patti's Antlr parser and create xml file.
3) Validate xml file using SAX parser and schema.
4) Returns result of validation as XML file.
- Author:
- J. Crichton
Method Summary |
static void |
main(String[] args)
Main entry for testing the ValidateLabelHandler. |
jpl.eda.xmlquery.XMLQuery |
validate(jpl.eda.xmlquery.XMLQuery q,
File file,
String xsdFilename)
Handle the request for validation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidateLabelHandler
public ValidateLabelHandler()
validate
public final jpl.eda.xmlquery.XMLQuery validate(jpl.eda.xmlquery.XMLQuery q,
File file,
String xsdFilename)
- Handle the request for validation.
- Parameters:
q
- XMLQuery containing the validation query.file
- Label file to be validated.xsdFilename
- XSD schema file used for validating the product.
- Returns:
- XMLQuery with validation results.
main
public static void main(String[] args)
- Main entry for testing the ValidateLabelHandler.
- Parameters:
args
- Command line arguments.
Copyright © 2005-2012 Planetary Data System. All Rights Reserved.