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 DefaultHandler

Since:
28 juil. 2008
Version:
$Id: XmlValidationHandler.html 816592 2012-05-08 12:40:21Z hboutemy $
Author:
olamy

Constructor Summary
XmlValidationHandler(boolean failOnValidationError)
          see name
 
Method Summary
 void error(SAXParseException excp)
           
 void fatalError(SAXParseException excp)
           
 List getErrors()
           
 List getFatalErrors()
           
 List getWarnings()
           
 boolean isErrorParsing()
           
 void setErrorParsing(boolean error)
           
 void setErrors(List errors)
           
 void setFatalErrors(List fatalErrors)
           
 void setWarnings(List 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 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 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 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 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 getErrors()

setErrors

public void setErrors(List errors)

getFatalErrors

public List getFatalErrors()

setFatalErrors

public void setFatalErrors(List fatalErrors)

getWarnings

public List getWarnings()

setWarnings

public void setWarnings(List warnings)


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