com.thalesgroup.dtkit.util.validator
Class ValidatorUtil

java.lang.Object
  extended by com.thalesgroup.dtkit.util.validator.ValidatorUtil

public class ValidatorUtil
extends java.lang.Object


Nested Class Summary
protected static class ValidatorUtil.Resolver
          Inner class to implement a resource resolver.
 
Constructor Summary
ValidatorUtil()
           
 
Method Summary
static java.util.List<ValidatorError> processValidation(java.lang.Class xsdNamnespace, java.lang.String xsdName, java.io.File inputXML)
          Validate an input file against a XSD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorUtil

public ValidatorUtil()
Method Detail

processValidation

public static java.util.List<ValidatorError> processValidation(java.lang.Class xsdNamnespace,
                                                               java.lang.String xsdName,
                                                               java.io.File inputXML)
                                                        throws ValidatorException
Validate an input file against a XSD

Parameters:
xsdNamnespace - the class of the xsd
xsdName - the xsd name
inputXML - the input XML file
Returns:
true if the validation succeeded, false otherwise
Throws:
ValidatorException - when there is a validation error


Copyright © 2010. All Rights Reserved.