org.fcrepo.server.validation.ecm
Class SchemaValidator.ReportingErrorHandler

java.lang.Object
  extended by org.fcrepo.server.validation.ecm.SchemaValidator.ReportingErrorHandler
All Implemented Interfaces:
ErrorHandler
Enclosing class:
SchemaValidator

public static class SchemaValidator.ReportingErrorHandler
extends Object
implements ErrorHandler

Errorhandler used by ECM to get errors reported correctly.


Constructor Summary
SchemaValidator.ReportingErrorHandler(List<String> problems, String contentModel, String datastreamID)
           
 
Method Summary
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaValidator.ReportingErrorHandler

public SchemaValidator.ReportingErrorHandler(List<String> problems,
                                             String contentModel,
                                             String datastreamID)
Method Detail

warning

public void warning(SAXParseException exception)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException

error

public void error(SAXParseException exception)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException


Copyright © 2012 DuraSpace. All Rights Reserved.