|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pl.psnc.dl.ege.validator.StandardErrorHandler
public class StandardErrorHandler
Catches errors received during XML validation process
of SAX parser.
Each object contains one ValidationResult
instance - where
all received notifications are stored. Depending on received errors
status of validation result is changed.
After validation, validation result instance can be retrieved in order
to read status and contained messages.
Constructor Summary | |
---|---|
StandardErrorHandler()
Constructs error handler with validation result of SUCCESS status. |
|
StandardErrorHandler(ValidationResult valResult)
Constructs error handler with specified validation result instance. |
Method Summary | |
---|---|
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
ValidationResult |
getValidationResult()
Returns contained validation result instance. |
void |
warning(org.xml.sax.SAXParseException exception)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardErrorHandler()
public StandardErrorHandler(ValidationResult valResult)
valResult
- Method Detail |
---|
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public ValidationResult getValidationResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |