org.apache.maven.plugin.changes.schema
Class XmlValidationHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.maven.plugin.changes.schema.XmlValidationHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class XmlValidationHandler
extends org.xml.sax.helpers.DefaultHandler

Since:
28 juil. 2008
Version:
$Id: XmlValidationHandler.java 1387920 2012-09-20 09:08:27Z olamy $
Author:
Olivier Lamy

Constructor Summary
XmlValidationHandler(boolean failOnValidationError)
          see name
 
Method Summary
 void error(SAXParseException excp)
           
 void fatalError(SAXParseException excp)
           
 List<SAXParseException> getErrors()
           
 List<SAXParseException> getFatalErrors()
           
 List<SAXParseException> getWarnings()
           
 boolean isErrorParsing()
           
 void setErrorParsing(boolean error)
           
 void setErrors(List<SAXParseException> errors)
           
 void setFatalErrors(List<SAXParseException> fatalErrors)
           
 void setWarnings(List<SAXParseException> warnings)
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 void warning(SAXParseException excp)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlValidationHandler

public XmlValidationHandler(boolean failOnValidationError)
see name

Method Detail

error

public void error(SAXParseException excp)
           throws SAXException
Specified by:
error in interface ErrorHandler
Overrides:
error in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException
See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)

fatalError

public void fatalError(SAXParseException excp)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Overrides:
fatalError in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException
See Also:
ErrorHandler.fatalError(org.xml.sax.SAXParseException)

warning

public void warning(SAXParseException excp)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Overrides:
warning in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException
See Also:
ContentHandler.startElement(String, String, String, Attributes)

isErrorParsing

public boolean isErrorParsing()
Returns:
Returns the errorParsing.

setErrorParsing

public void setErrorParsing(boolean error)
Parameters:
error - The errorParsing to set.

getErrors

public List<SAXParseException> getErrors()

setErrors

public void setErrors(List<SAXParseException> errors)

getFatalErrors

public List<SAXParseException> getFatalErrors()

setFatalErrors

public void setFatalErrors(List<SAXParseException> fatalErrors)

getWarnings

public List<SAXParseException> getWarnings()

setWarnings

public void setWarnings(List<SAXParseException> warnings)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.