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:
Dannes Wessels (dizzzz@exist-db.org)
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.
 String getNamespaceUri()
           
 List getTextValidationReport()
           
 Throwable getThrowable()
           
 long getValidationDuration()
           
 String[] getValidationReportArray()
           
 List getValidationReportItemList()
           
 boolean isValid()
          Give validation information of the XML document.
 void setException(Exception ex)
           
 void setNamespaceUri(String namespace)
           
 void setThrowable(Throwable throwable)
           
 void setValidationDuration(long time)
           
 void start()
           
 void stop()
           
 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.

getValidationReportItemList

public List getValidationReportItemList()

getTextValidationReport

public List getTextValidationReport()

getValidationReportArray

public String[] getValidationReportArray()

setValidationDuration

public void setValidationDuration(long time)

getValidationDuration

public long getValidationDuration()

toString

public String toString()
Overrides:
toString in class Object

start

public void start()

stop

public void stop()

setThrowable

public void setThrowable(Throwable throwable)

getThrowable

public Throwable getThrowable()

setNamespaceUri

public void setNamespaceUri(String namespace)

getNamespaceUri

public String getNamespaceUri()


Copyright (C) Wolfgang Meier. All rights reserved.