public interface Transformer
TransformAction
to be performed. An action can bundle either
a single explicit transform, or the set of default transforms implied by
one or more violations.TransformAction
,
DefaultTransformsAction
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
applyDefaultTransforms(java.lang.String label,
AuditModel model,
java.lang.Object[] objects,
TransformerListener listener)
Apply the applicable default transforms of rows in an
AuditModel .. |
java.lang.Throwable |
applyDefaultTransforms(java.lang.String label,
java.util.Collection<? extends Violation> violations,
TransformerListener listener,
AuditModel model)
Apply the applicable default transforms of violations.
|
DefaultTransformsAction |
createDefaultTransformsAction(java.lang.String label,
AuditModel model,
java.lang.Object[] objects,
TransformerListener listener)
Creates an action for the applicable default transforms of one or more
violations.
|
DefaultTransformsAction |
createDefaultTransformsAction(java.lang.String label,
java.util.Collection<? extends Violation> violations,
TransformerListener listener,
AuditModel model)
Creates an action for the applicable default transforms of one or more
violations.
|
java.util.List<TransformAction> |
createTransformActions(java.util.Collection<? extends Violation> violations,
Profile profile,
TransformerListener listener,
AuditModel model)
Creates actions for the applicable transforms of one or more violations.
|
java.util.List<TransformAction> |
createTransformActions(java.util.Collection<? extends Violation> violations,
TransformerListener listener,
AuditModel model)
Creates actions for the applicable transforms of one or more violations.
|
java.util.List<TransformAction> |
createTransformActions(Violation violation,
TransformerListener listener,
AuditModel model)
Creates actions for the applicable transforms of a violation.
|
boolean |
hasStandardTransforms(java.util.Collection<? extends Violation> violations)
Gets whether one or more violations have standard transforms.
|
boolean |
hasSuppressionTransforms(java.util.Collection<? extends Violation> violations,
Profile profile)
Gets whether one or more violations have suppression transforms.
|
boolean |
hasTransforms(java.util.Collection<? extends Violation> violations,
Profile profile)
Gets whether one or more violations have transforms (either standard or
suppression).
|
void |
setQueryAllowed(boolean allowed)
Sets whether user queries are allowed when a transform is applied.
|
void |
setQueryInterceptor(Transform transform,
TransformerQueryInterceptor interceptor)
Sets a query interceptor for a transform.
|
void setQueryAllowed(boolean allowed)
void setQueryInterceptor(Transform transform, TransformerQueryInterceptor interceptor)
boolean hasTransforms(java.util.Collection<? extends Violation> violations, Profile profile)
boolean hasStandardTransforms(java.util.Collection<? extends Violation> violations)
boolean hasSuppressionTransforms(java.util.Collection<? extends Violation> violations, Profile profile)
java.util.List<TransformAction> createTransformActions(Violation violation, TransformerListener listener, AuditModel model)
java.util.List<TransformAction> createTransformActions(java.util.Collection<? extends Violation> violations, TransformerListener listener, AuditModel model)
java.util.List<TransformAction> createTransformActions(java.util.Collection<? extends Violation> violations, Profile profile, TransformerListener listener, AuditModel model)
DefaultTransformsAction createDefaultTransformsAction(java.lang.String label, java.util.Collection<? extends Violation> violations, TransformerListener listener, AuditModel model)
DefaultTransformsAction createDefaultTransformsAction(java.lang.String label, AuditModel model, java.lang.Object[] objects, TransformerListener listener)
java.lang.Throwable applyDefaultTransforms(java.lang.String label, java.util.Collection<? extends Violation> violations, TransformerListener listener, AuditModel model)
java.lang.Throwable applyDefaultTransforms(java.lang.String label, AuditModel model, java.lang.Object[] objects, TransformerListener listener)
AuditModel
..