Package jadex.xml.stax
Class StaxXMLReporterWrapper
- java.lang.Object
-
- jadex.xml.stax.StaxXMLReporterWrapper
-
- All Implemented Interfaces:
XMLReporter
public class StaxXMLReporterWrapper extends java.lang.Object implements XMLReporter
Wraps a javax.xml.stream.XMLReporter Object to provide the jadex.xml.stax.XMLReporter API.
-
-
Constructor Summary
Constructors Constructor Description StaxXMLReporterWrapper(javax.xml.stream.XMLReporter reporter)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XMLReporterfromXMLReporter(javax.xml.stream.XMLReporter reporter)Static method to wrap an XMLReportervoidreport(java.lang.String message, java.lang.String errorType, java.lang.Object relatedInformation, ILocation location)Report the desired message in an application specific format.
-
-
-
Method Detail
-
report
public void report(java.lang.String message, java.lang.String errorType, java.lang.Object relatedInformation, ILocation location) throws java.lang.ExceptionReport the desired message in an application specific format. Only warnings and non-fatal errors should be reported through this interface. Fatal errors should be thrown as XMLStreamException.- Specified by:
reportin interfaceXMLReporter- Parameters:
message- the error messageerrorType- an implementation defined error typerelatedInformation- information related to the error, if availablelocation- the location of the error, if available- Throws:
javax.xml.stream.XMLStreamExceptionXMLStreamExceptionjava.lang.Exception
-
fromXMLReporter
public static XMLReporter fromXMLReporter(javax.xml.stream.XMLReporter reporter)
Static method to wrap an XMLReporter- Parameters:
reporter-- Returns:
- the wrapped XMLReporter
-
-