Class ViolationHandlerImpl
- java.lang.Object
-
- com.adaptris.core.transform.schema.ViolationHandlerImpl
-
- All Implemented Interfaces:
SchemaViolationHandler
- Direct Known Subclasses:
OverwritePayload
,ViolationsAsMetadata
,ViolationsAsObjectMetadata
public abstract class ViolationHandlerImpl extends java.lang.Object implements SchemaViolationHandler
UsesSchemaViolations
to render schema violations into something meaningful.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_KEY
-
Constructor Summary
Constructors Constructor Description ViolationHandlerImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
DEFAULT_KEY
public static final java.lang.String DEFAULT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
handle
public void handle(java.lang.Iterable<org.xml.sax.SAXParseException> exceptions, AdaptrisMessage msg) throws ServiceException
Description copied from interface:SchemaViolationHandler
Handle any schema violations.- Specified by:
handle
in interfaceSchemaViolationHandler
- Parameters:
exceptions
- the iterable representing the violations, non-null and not-empty.msg
- the adaptris message- Throws:
ServiceException
-
render
protected abstract void render(SchemaViolations violations, AdaptrisMessage msg) throws ServiceException
- Throws:
ServiceException
-
toString
protected java.lang.String toString(SchemaViolations violations) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-