org.jvnet.ws.wadl2java
Class Wadl2Java.SchemaCompilerErrorListener

java.lang.Object
  extended by org.jvnet.ws.wadl2java.Wadl2Java.SchemaCompilerErrorListener
All Implemented Interfaces:
com.sun.xml.bind.api.ErrorListener, ErrorHandler
Enclosing class:
Wadl2Java

protected class Wadl2Java.SchemaCompilerErrorListener
extends Object
implements com.sun.tools.xjc.api.ErrorListener

Inner class implementing the JAXB ErrorListener interface to support error reporting from the JAXB infrastructure.


Constructor Summary
protected Wadl2Java.SchemaCompilerErrorListener()
           
 
Method Summary
 void error(SAXParseException sAXParseException)
          Report an error.
 void fatalError(SAXParseException sAXParseException)
          Report a fatal error
 Throwable getFirstFatalError()
           
 boolean hasFatalErrorOccured()
           
 void info(SAXParseException sAXParseException)
          Report informative message
 void warning(SAXParseException sAXParseException)
          Report a warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wadl2Java.SchemaCompilerErrorListener

protected Wadl2Java.SchemaCompilerErrorListener()
Method Detail

hasFatalErrorOccured

public boolean hasFatalErrorOccured()
Returns:
Whether a fatal error has occurred;

getFirstFatalError

public Throwable getFirstFatalError()
Returns:
The first fatal error to have occurred.

warning

public void warning(SAXParseException sAXParseException)
Report a warning

Specified by:
warning in interface com.sun.xml.bind.api.ErrorListener
Specified by:
warning in interface ErrorHandler
Parameters:
sAXParseException - the exception that caused the warning.

info

public void info(SAXParseException sAXParseException)
Report informative message

Specified by:
info in interface com.sun.xml.bind.api.ErrorListener
Parameters:
sAXParseException - the exception that caused the informative message.

fatalError

public void fatalError(SAXParseException sAXParseException)
Report a fatal error

Specified by:
fatalError in interface com.sun.xml.bind.api.ErrorListener
Specified by:
fatalError in interface ErrorHandler
Parameters:
sAXParseException - the exception that caused the fatal error.

error

public void error(SAXParseException sAXParseException)
Report an error.

Specified by:
error in interface com.sun.xml.bind.api.ErrorListener
Specified by:
error in interface ErrorHandler
Parameters:
sAXParseException - the exception that caused the error.


Copyright © 2012. All Rights Reserved.