Package org.cip4.jdflib.core
Class XMLErrorHandler
- java.lang.Object
-
- org.cip4.jdflib.core.XMLErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class XMLErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandler
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERRORstatic java.lang.StringFATAL_ERRORstatic java.lang.StringMESSAGEstatic java.lang.StringVALIDstatic java.lang.StringVALIDATION_RESULTstatic java.lang.StringWARNING
-
Constructor Summary
Constructors Constructor Description XMLErrorHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanXML(java.lang.String schemaLocation)remove duplicate warnings from the list and set schemaloctionvoiderror(org.xml.sax.SAXParseException exception)voidfatalError(org.xml.sax.SAXParseException exception)XMLDocgetXMLOutput()static booleanisWantLog()voidreset()voidsetInputSource(org.xml.sax.InputSource inSource)voidsetParser(XMLParser parser)Setter for parser attribute.static voidsetWantLog(boolean wantLog)java.lang.StringtoString()voidwarning(org.xml.sax.SAXParseException exception)
-
-
-
Field Detail
-
MESSAGE
public static final java.lang.String MESSAGE
- See Also:
- Constant Field Values
-
VALID
public static final java.lang.String VALID
- See Also:
- Constant Field Values
-
FATAL_ERROR
public static final java.lang.String FATAL_ERROR
- See Also:
- Constant Field Values
-
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
-
WARNING
public static final java.lang.String WARNING
- See Also:
- Constant Field Values
-
VALIDATION_RESULT
public static final java.lang.String VALIDATION_RESULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
isWantLog
public static boolean isWantLog()
- Returns:
- the wantLog
-
setWantLog
public static void setWantLog(boolean wantLog)
- Parameters:
wantLog- the wantLog to set
-
warning
public void warning(org.xml.sax.SAXParseException exception)
- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Parameters:
exception-- See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)
-
error
public void error(org.xml.sax.SAXParseException exception)
- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Parameters:
exception-- See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)
-
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Parameters:
exception- SAXParseException- Throws:
JDFException- - if fatal error occurs
-
getXMLOutput
public XMLDoc getXMLOutput()
- Returns:
-
cleanXML
public void cleanXML(java.lang.String schemaLocation)
remove duplicate warnings from the list and set schemaloction- Parameters:
schemaLocation-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
setParser
public void setParser(XMLParser parser)
Setter for parser attribute.- Parameters:
parser- the parser to set
-
setInputSource
public void setInputSource(org.xml.sax.InputSource inSource)
- Parameters:
inSource-
-
reset
public void reset()
-
-