public class StaxXMLReporterWrapper extends java.lang.Object implements XMLReporter
Constructor and Description |
---|
StaxXMLReporterWrapper(javax.xml.stream.XMLReporter reporter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static XMLReporter |
fromXMLReporter(javax.xml.stream.XMLReporter reporter)
Static method to wrap an XMLReporter
|
void |
report(java.lang.String message,
java.lang.String errorType,
java.lang.Object relatedInformation,
ILocation location)
Report the desired message in an application specific format.
|
public StaxXMLReporterWrapper(javax.xml.stream.XMLReporter reporter)
reporter
- The Reporter object to be wrapped.public void report(java.lang.String message, java.lang.String errorType, java.lang.Object relatedInformation, ILocation location) throws java.lang.Exception
report
in interface XMLReporter
message
- the error messageerrorType
- an implementation defined error typerelatedInformation
- information related to the error, if availablelocation
- the location of the error, if availablejavax.xml.stream.XMLStreamException
java.lang.Exception
public static XMLReporter fromXMLReporter(javax.xml.stream.XMLReporter reporter)
reporter
-