public class SimpleXmlProcessorContext extends Object implements XmlProcessorContext
The SimpleXmlProcessorContext class is a simple implementation of
XmlProcessorContext that can be used by XmlProcessor
implementations to record errors in processing an XML document and to share
attributes (objects) between the process methods.
| Constructor and Description |
|---|
SimpleXmlProcessorContext() |
| 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 |
report(String message,
String errorType,
Object relatedInformation,
Location location)
Add the error to the list of errors in processing the XML Document.
|
void |
setAttribute(String name,
Object value)
Set the value of an attribute.
|
public void addError(String message, Object relatedInformation, Location location)
addError in interface XmlProcessorContextmessage - The error message.relatedInformation - Additional information about the error.location - The location of the error.public void addError(XmlProcessorError error)
addError in interface XmlProcessorContexterror - The error.public Object getAttribute(String name)
getAttribute in interface XmlProcessorContextname - The name of the attribute.public Collection getErrors()
XmlProcessorErrors in processing the XML Document.getErrors in interface XmlProcessorContextXmlProcessorErrors in processing the XML
Document.public void report(String message, String errorType, Object relatedInformation, Location location)
report in interface XMLReportermessage - The error message.errorType - The type of error.relatedInformation - Additional information about the error.location - The location of the error.public void setAttribute(String name, Object value)
setAttribute in interface XmlProcessorContextname - The name of the attribute.value - The value of the attribute.Copyright © 2015 Revolution Systems Inc.. All rights reserved.