Package org.cip4.jdflib.core
Class XMLErrorHandler
java.lang.Object
org.cip4.jdflib.core.XMLErrorHandler
- All Implemented Interfaces:
ErrorHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidremove duplicate warnings from the list and set schemaloctionvoiderror(SAXParseException exception) voidfatalError(SAXParseException exception) static booleanvoidreset()voidsetInputSource(InputSource inSource) voidSetter for parser attribute.static voidsetWantLog(boolean wantLog) toString()voidwarning(SAXParseException exception)
-
Field Details
-
MESSAGE
- See Also:
-
VALID
- See Also:
-
FATAL_ERROR
- See Also:
-
ERROR
- See Also:
-
WARNING
- See Also:
-
VALIDATION_RESULT
- See Also:
-
-
Constructor Details
-
XMLErrorHandler
public XMLErrorHandler()
-
-
Method Details
-
isWantLog
public static boolean isWantLog()- Returns:
- the wantLog
-
setWantLog
public static void setWantLog(boolean wantLog) - Parameters:
wantLog- the wantLog to set
-
warning
- Specified by:
warningin interfaceErrorHandler- Parameters:
exception-- See Also:
-
error
- Specified by:
errorin interfaceErrorHandler- Parameters:
exception-- See Also:
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Parameters:
exception- SAXParseException- Throws:
JDFException- - if fatal error occurs
-
getXMLOutput
- Returns:
-
cleanXML
remove duplicate warnings from the list and set schemaloction- Parameters:
schemaLocation-
-
toString
-
setParser
Setter for parser attribute.- Parameters:
parser- the parser to set
-
setInputSource
- Parameters:
inSource-
-
reset
public void reset()
-