gov.nih.nci.cagrid.data.utilities.validation
Class CQLQueryResultsValidator
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static org.apache.commons.logging.Log LOG
CQLQueryResultsValidator
public CQLQueryResultsValidator(org.apache.axis.message.addressing.EndpointReferenceType serviceEPR)
CQLQueryResultsValidator
public CQLQueryResultsValidator(java.lang.String wsdlFileName)
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)