Package jadex.xml.stax
Class JadexXMLReporterWrapper
- java.lang.Object
- 
- jadex.xml.stax.JadexXMLReporterWrapper
 
- 
- All Implemented Interfaces:
- javax.xml.stream.XMLReporter
 
 public class JadexXMLReporterWrapper extends java.lang.Object implements javax.xml.stream.XMLReporterWraps a jadex.xml.stax.XMLReporter Object to provide the javax.xml.stream.XMLReporter API.
- 
- 
Constructor SummaryConstructors Constructor Description JadexXMLReporterWrapper(XMLReporter reporter)Constructor
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.xml.stream.XMLReporterfromXMLReporter(XMLReporter reporter)Wraps a reporter object.voidreport(java.lang.String message, java.lang.String errorType, java.lang.Object relatedInformation, javax.xml.stream.Location location)Report the desired message in an application specific format.
 
- 
- 
- 
Constructor Detail- 
JadexXMLReporterWrapperpublic JadexXMLReporterWrapper(XMLReporter reporter) Constructor- Parameters:
- reporter- The reporter to be wrapped.
 
 
- 
 - 
Method Detail- 
reportpublic void report(java.lang.String message, java.lang.String errorType, java.lang.Object relatedInformation, javax.xml.stream.Location location) throws javax.xml.stream.XMLStreamExceptionReport 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- javax.xml.stream.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
 
 - 
fromXMLReporterpublic static javax.xml.stream.XMLReporter fromXMLReporter(XMLReporter reporter) Wraps a reporter object.- Parameters:
- reporter-
- Returns:
- wrapped XMLReporter
 
 
- 
 
-