Class ViolationsAsObjectMetadata
- java.lang.Object
-
- com.adaptris.core.transform.schema.ViolationHandlerImpl
-
- com.adaptris.core.transform.schema.ViolationsAsObjectMetadata
-
- All Implemented Interfaces:
SchemaViolationHandler
@ComponentProfile(summary="Render an XML representation of the schema violations as object metadata", since="3.10.2") public class ViolationsAsObjectMetadata extends ViolationHandlerImpl
UsesSchemaViolations
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.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.transform.schema.ViolationHandlerImpl
DEFAULT_KEY
-
-
Constructor Summary
Constructors Constructor Description ViolationsAsObjectMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class com.adaptris.core.transform.schema.ViolationHandlerImpl
handle, toString
-
-
-
-
Method Detail
-
render
protected void render(SchemaViolations violations, AdaptrisMessage msg) throws ServiceException
- Specified by:
render
in classViolationHandlerImpl
- Throws:
ServiceException
-
getObjectMetadataKey
public java.lang.String getObjectMetadataKey()
-
setObjectMetadataKey
public void setObjectMetadataKey(java.lang.String s)
The object metadata key.If not explicitly specified defaults to "schema_violations"
-
withObjectMetadataKey
public ViolationsAsObjectMetadata withObjectMetadataKey(java.lang.String key)
-
-