public abstract class ViolationHandlerImpl extends java.lang.Object implements SchemaViolationHandler
SchemaViolations
to render schema violations into something meaningful.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_KEY |
Constructor and Description |
---|
ViolationHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
handle(java.lang.Iterable<org.xml.sax.SAXParseException> exceptions,
AdaptrisMessage msg)
Handle any schema violations.
|
protected abstract void |
render(SchemaViolations violations,
AdaptrisMessage msg) |
protected java.lang.String |
toString(SchemaViolations violations) |
public static final java.lang.String DEFAULT_KEY
public void handle(java.lang.Iterable<org.xml.sax.SAXParseException> exceptions, AdaptrisMessage msg) throws ServiceException
SchemaViolationHandler
handle
in interface SchemaViolationHandler
exceptions
- the iterable representing the violations, non-null and not-empty.msg
- the adaptris messageServiceException
protected abstract void render(SchemaViolations violations, AdaptrisMessage msg) throws ServiceException
ServiceException
protected java.lang.String toString(SchemaViolations violations) throws java.lang.Exception
java.lang.Exception