@ComponentProfile(summary="Render an XML representation of the schema violations as object metadata", since="3.10.2") public class ViolationsAsObjectMetadata extends ViolationHandlerImpl
SchemaViolations
and adds it as object metadata.In the adapter configuration file this class is aliased as schema-violations-as-object-metadata which is the preferred alternative to the fully qualified classname when building your configuration.
DEFAULT_KEY
Constructor and Description |
---|
ViolationsAsObjectMetadata() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getObjectMetadataKey() |
protected void |
render(SchemaViolations violations,
AdaptrisMessage msg) |
void |
setObjectMetadataKey(java.lang.String s)
The object metadata key.
|
ViolationsAsObjectMetadata |
withObjectMetadataKey(java.lang.String key) |
handle, toString
protected void render(SchemaViolations violations, AdaptrisMessage msg) throws ServiceException
render
in class ViolationHandlerImpl
ServiceException
public java.lang.String getObjectMetadataKey()
public void setObjectMetadataKey(java.lang.String s)
If not explicitly specified defaults to "schema_violations"
public ViolationsAsObjectMetadata withObjectMetadataKey(java.lang.String key)