Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.run.xml
Class SaxParser.ValidationHandler

java.lang.Object
  extended by com.tangosol.run.xml.SaxParser.ValidationHandler

All Implemented Interfaces:
org.xml.sax.ErrorHandler
Enclosing class:
SaxParser

protected class SaxParser.ValidationHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

An inner class Error Handler that is registered in parser that performs validation. It gets called when on warning, error, or fatalError.


Constructor Summary
protected SaxParser.ValidationHandler()
           

 

Method Summary
 void error(org.xml.sax.SAXParseException e)
          Routine called when a error occurs in parser.
 void fatalError(org.xml.sax.SAXParseException e)
          Routine called when a fatal error occurs in parser.
 int getErrorCount()
          Returns the number of Errors encountered.
 org.xml.sax.SAXParseException getException()
          Returns a saved parser exception.
 boolean isError()
          Returns boolean indicating if an error has occurred.
 void warning(org.xml.sax.SAXParseException e)
          Routine called when a warning occurs in parser.

 

Constructor Detail

SaxParser.ValidationHandler

protected SaxParser.ValidationHandler()

Method Detail

warning

public void warning(org.xml.sax.SAXParseException e)
             throws org.xml.sax.SAXException
Routine called when a warning occurs in parser. Logs the warning message.
Specified by:
warning in interface org.xml.sax.ErrorHandler
Parameters:
e - SAXParseException is warning exception.
Throws:
org.xml.sax.SAXException

error

public void error(org.xml.sax.SAXParseException e)
           throws org.xml.sax.SAXException
Routine called when a error occurs in parser. Logs the error message, saves the first exception and increments an errorCounter. Error count and exception can be retrieved when parsing is complete.
Specified by:
error in interface org.xml.sax.ErrorHandler
Parameters:
e - SAXParseException is error exception.
Throws:
org.xml.sax.SAXException

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
                throws org.xml.sax.SAXException
Routine called when a fatal error occurs in parser. Logs the fatal error message and throws the exception.
Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Parameters:
e - SAXParseException is fatal error exception.
Throws:
org.xml.sax.SAXException

getErrorCount

public int getErrorCount()
Returns the number of Errors encountered.
Returns:
int error count

getException

public org.xml.sax.SAXParseException getException()
Returns a saved parser exception.
Returns:
SAXParseException Parser exception

isError

public boolean isError()
Returns boolean indicating if an error has occurred.
Returns:
boolean true if error else false

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.