jpl.pds.parser
Class ParserHandler

java.lang.Object
  extended by jpl.pds.parser.ParserHandler
All Implemented Interfaces:
jpl.eda.product.QueryHandler

public class ParserHandler
extends Object
implements jpl.eda.product.QueryHandler

Handle product queries for validation of PDS products and queries for metadata values. This class is a product parser query handler that accepts queries of the form OFSN = <filename> AND XSD=<url> AND RT=VALIDATION OFSN = <filename> AND METANAMES=<name1,name2,...> AND RT=METADATA After decoding the query, ValidateLabelHandler or MetaDataHandler is used to handle the query.

Author:
J. Crichton

Constructor Summary
ParserHandler()
          Create ParserHandler object that validates the product or finds metadata in the product.
 
Method Summary
static void main(String[] argv)
          Main entry for testing ParserHandler.
 jpl.eda.xmlquery.XMLQuery query(jpl.eda.xmlquery.XMLQuery query)
          Do the work of processing the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserHandler

public ParserHandler()
Create ParserHandler object that validates the product or finds metadata in the product.

Method Detail

query

public final jpl.eda.xmlquery.XMLQuery query(jpl.eda.xmlquery.XMLQuery query)
Do the work of processing the query.

Specified by:
query in interface jpl.eda.product.QueryHandler
Parameters:
query - Query request for validation or metadata.
Returns:
Query with the validation results or metadata values.

main

public static void main(String[] argv)
Main entry for testing ParserHandler.

Parameters:
argv - Command-line arguments.


Copyright © 2005-2012 Planetary Data System. All Rights Reserved.