public interface XmlProcessorContext extends XMLReporter
The XmlProcessorContext interface is used by XmlProcessor
implementations to record errors in processing an XML document and to share
attributes (objects) between the process methods. The interface also acts as
an XMLReporter for recording errors from the
XMLStreamReader.
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String message,
Object relatedInformation,
Location location)
Add the error to the list of errors in processing the XML Document.
|
void |
addError(XmlProcessorError error)
Add the error to the list of errors in processing the XML Document.
|
Object |
getAttribute(String name)
Get the value of an attribute.
|
Collection |
getErrors()
Get the list of
XmlProcessorErrors in processing the XML Document. |
void |
setAttribute(String name,
Object value)
Set the value of an attribute.
|
reportvoid addError(String message, Object relatedInformation, Location location)
message - The error message.relatedInformation - Additional information about the error.location - The location of the error.void addError(XmlProcessorError error)
error - The error.Object getAttribute(String name)
name - The name of the attribute.Collection getErrors()
XmlProcessorErrors in processing the XML Document.XmlProcessorErrors in processing the XML
Document.Copyright © 2015 Revolution Systems Inc.. All rights reserved.