Class XmlValidationHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.maven.plugins.changes.schema.XmlValidationHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Since:
- 28 juil. 2008
- Version:
- $Id$
- Author:
- Olivier Lamy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SAXParseException excp) void
fatalError
(SAXParseException excp) boolean
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
-
Constructor Details
-
XmlValidationHandler
public XmlValidationHandler(boolean failOnValidationError) - Parameters:
failOnValidationError
- If fail on validation error.
-
-
Method Details
-
error
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
- Throws:
SAXException
- See Also:
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
- Throws:
SAXException
- See Also:
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classDefaultHandler
- See Also:
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- See Also:
-
isErrorParsing
public boolean isErrorParsing()- Returns:
- Returns the errorParsing.
-
setErrorParsing
public void setErrorParsing(boolean error) - Parameters:
error
- The errorParsing to set.
-
getErrors
-
setErrors
-
getFatalErrors
-
setFatalErrors
-
getWarnings
-
setWarnings
-