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 SummaryConstructors Constructor Description StaxXMLReporterWrapper(javax.xml.stream.XMLReporter reporter)Constructor.
 - 
Method SummaryAll 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- 
reportpublic 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 interface- XMLReporter
- Parameters:
- message- the error message
- errorType- an implementation defined error type
- relatedInformation- information related to the error, if available
- location- the location of the error, if available
- Throws:
- javax.xml.stream.XMLStreamException
- XMLStreamException
- java.lang.Exception
 
 - 
fromXMLReporterpublic static XMLReporter fromXMLReporter(javax.xml.stream.XMLReporter reporter) Static method to wrap an XMLReporter- Parameters:
- reporter-
- Returns:
- the wrapped XMLReporter
 
 
- 
 
-