junitx.ddtunit.data.processing.parser
Class SAXValidator

java.lang.Object
  extended by junitx.ddtunit.data.processing.parser.SAXValidator
All Implemented Interfaces:
ErrorHandler

public final class SAXValidator
extends Object

Author:
jg

Field Summary
static String XSD_RESOURCE_PATH
          resource path of xml schema used for validation
 
Constructor Summary
SAXValidator()
           
 
Method Summary
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
 void validate(String resourceName)
           
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_RESOURCE_PATH

public static final String XSD_RESOURCE_PATH
resource path of xml schema used for validation

See Also:
Constant Field Values
Constructor Detail

SAXValidator

public SAXValidator()
Method Detail

validate

public void validate(String resourceName)

error

public void error(SAXParseException exception)
           throws SAXException
Specified by:
error in interface ErrorHandler
Parameters:
exception - propagated from sax parser
Throws:
SAXException
See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException
See Also:
ErrorHandler.fatalError(org.xml.sax.SAXParseException)

warning

public void warning(SAXParseException exception)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Parameters:
exception - propagated from sax parser
Throws:
SAXException
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)


Copyright © 2004-2011. All Rights Reserved.