Class DtdChecker
- java.lang.Object
-
- org.aksw.limes.core.io.config.reader.xml.DtdChecker
-
- All Implemented Interfaces:
ErrorHandler
public class DtdChecker extends Object implements ErrorHandler
Checks a link specification against the LIMES DTD.- Version:
- Jul 12, 2016
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de), Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanvalid
-
Constructor Summary
Constructors Constructor Description DtdChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(SAXParseException e)Carry out the validation in case a parsing error occurs.voidfatalError(SAXParseException e)Carries out the validation in case a fatal parsing error occur.voidwarning(SAXParseException err)Carry out the validation in case a warning is issued during the parsing.
-
-
-
Method Detail
-
fatalError
public void fatalError(SAXParseException e) throws SAXException
Carries out the validation in case a fatal parsing error occur.- Specified by:
fatalErrorin interfaceErrorHandler- Parameters:
e- Exception generated by the fatal parsing error- Throws:
SAXParseException- if XML contains errorsSAXException
-
error
public void error(SAXParseException e) throws SAXParseException
Carry out the validation in case a parsing error occurs.- Specified by:
errorin interfaceErrorHandler- Parameters:
e- Exception generated by the parsing error- Throws:
SAXParseException- Encapsulate an XML parse error or warning
-
warning
public void warning(SAXParseException err)
Carry out the validation in case a warning is issued during the parsing.- Specified by:
warningin interfaceErrorHandler- Parameters:
err- Exception generated by the warning
-
-