Class XMLAgainstXSDErrorHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- net.anotheria.asg.generator.validation.XMLAgainstXSDErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
public class XMLAgainstXSDErrorHandler extends org.xml.sax.helpers.DefaultHandlerXMLAgainstXSDErrorHandler class.
- Version:
- $Id: $Id
- Author:
- vzarva
-
-
Constructor Summary
Constructors Constructor Description XMLAgainstXSDErrorHandler(IncludedDocuments includedDocuments)Constructor for XMLAgainstXSDErrorHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException e)voidfatalError(org.xml.sax.SAXParseException e)java.lang.StringgetErrorMessage(java.lang.String errorType, org.xml.sax.SAXParseException e, IncludedDocuments includedDocuments)getErrorMessage.booleanisHasErrors()isHasErrors.voidsetHasErrors(boolean hasErrors)Setter for the fieldhasErrors.voidwarning(org.xml.sax.SAXParseException e)
-
-
-
Constructor Detail
-
XMLAgainstXSDErrorHandler
public XMLAgainstXSDErrorHandler(IncludedDocuments includedDocuments)
Constructor for XMLAgainstXSDErrorHandler.
- Parameters:
includedDocuments- aIncludedDocumentsobject.
-
-
Method Detail
-
error
public void error(org.xml.sax.SAXParseException e)
- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Overrides:
errorin classorg.xml.sax.helpers.DefaultHandler
-
warning
public void warning(org.xml.sax.SAXParseException e)
- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Overrides:
warningin classorg.xml.sax.helpers.DefaultHandler
-
fatalError
public void fatalError(org.xml.sax.SAXParseException e)
- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Overrides:
fatalErrorin classorg.xml.sax.helpers.DefaultHandler
-
getErrorMessage
public java.lang.String getErrorMessage(java.lang.String errorType, org.xml.sax.SAXParseException e, IncludedDocuments includedDocuments)getErrorMessage.
- Parameters:
errorType- aStringobject.e- aSAXParseExceptionobject.includedDocuments- aIncludedDocumentsobject.- Returns:
- a
Stringobject.
-
isHasErrors
public boolean isHasErrors()
isHasErrors.
- Returns:
- a boolean.
-
setHasErrors
public void setHasErrors(boolean hasErrors)
Setter for the field
hasErrors.- Parameters:
hasErrors- a boolean.
-
-