gov.nih.nci.cagrid.data.utilities.validation
Class CQLQueryResultsValidator

java.lang.Object
  extended by gov.nih.nci.cagrid.data.utilities.validation.CQLQueryResultsValidator

public class CQLQueryResultsValidator
extends java.lang.Object

Validates CQL Results for a particular service. This contacts the service to parse its WSDL, extracting the CQL Results schema, and rewriting it using the schema information the service publishes about the allowable types the service is exposing. Not only the structure of the result set is validated, but the actual object instances are too.

Author:
oster

Field Summary
protected static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
CQLQueryResultsValidator(org.apache.axis.message.addressing.EndpointReferenceType serviceEPR)
           
CQLQueryResultsValidator(java.lang.String wsdlFileName)
           
 
Method Summary
protected  void initializeRestrictedXSD()
           
static void main(java.lang.String[] args)
           
 void saveRestrictedCQLResultSetXSD(java.io.File fileLocation)
          Saves the XSD defining the restricted result set to a file
 void validateCQLResultSet(CQLQueryResults resultSet)
          Validates a CQL result set's contents against the restricted result set schema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static org.apache.commons.logging.Log LOG
Constructor Detail

CQLQueryResultsValidator

public CQLQueryResultsValidator(org.apache.axis.message.addressing.EndpointReferenceType serviceEPR)

CQLQueryResultsValidator

public CQLQueryResultsValidator(java.lang.String wsdlFileName)
Method Detail

initializeRestrictedXSD

protected void initializeRestrictedXSD()
                                throws SchemaValidationException
Throws:
SchemaValidationException

saveRestrictedCQLResultSetXSD

public void saveRestrictedCQLResultSetXSD(java.io.File fileLocation)
                                   throws SchemaValidationException
Saves the XSD defining the restricted result set to a file

Parameters:
fileLocation - The file in which to store the XSD
Throws:
SchemaValidationException

validateCQLResultSet

public void validateCQLResultSet(CQLQueryResults resultSet)
                          throws SchemaValidationException
Validates a CQL result set's contents against the restricted result set schema

Parameters:
resultSet -
Throws:
SchemaValidationException

main

public static void main(java.lang.String[] args)