org.exist.validation
Class ValidationReport

java.lang.Object
  extended by org.exist.validation.ValidationReport
All Implemented Interfaces:
ErrorHandler

public class ValidationReport
extends Object
implements ErrorHandler

Report containing all validation info (errors, warnings).

Author:
dizzz
See Also:
ErrorHandler

Constructor Summary
ValidationReport()
           
 
Method Summary
 void error(SAXParseException exception)
          Receive notification of a recoverable error.
 void fatalError(SAXParseException exception)
          Receive notification of a non-recoverable error.
 long getValidationDuration()
           
 List getValidationReport()
           
 String[] getValidationReportArray()
           
 boolean isValid()
          Give validation information of the XML document.
 void setException(Exception ex)
           
 void setValidationDuration(long time)
           
 String toString()
           
 void warning(SAXParseException exception)
          Receive notification of a warning.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationReport

public ValidationReport()
Method Detail

error

public void error(SAXParseException exception)
           throws SAXException
Receive notification of a recoverable error.

Specified by:
error in interface ErrorHandler
Parameters:
exception - The warning information encapsulated in a SAX parse exception.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Receive notification of a non-recoverable error.

Specified by:
fatalError in interface ErrorHandler
Parameters:
exception - The warning information encapsulated in a SAX parse exception.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

warning

public void warning(SAXParseException exception)
             throws SAXException
Receive notification of a warning.

Specified by:
warning in interface ErrorHandler
Parameters:
exception - The warning information encapsulated in a SAX parse exception.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

setException

public void setException(Exception ex)

isValid

public boolean isValid()
Give validation information of the XML document.

Returns:
FALSE if no errors and warnings occurred.

getValidationReport

public List getValidationReport()

getValidationReportArray

public String[] getValidationReportArray()

setValidationDuration

public void setValidationDuration(long time)

getValidationDuration

public long getValidationDuration()

toString

public String toString()
Overrides:
toString in class Object


Copyright (C) Wolfgang Meier. All rights reserved.