Class ModelBasedEventDecorator


  • public final class ModelBasedEventDecorator
    extends java.lang.Object
    Creates a ValidationEventDecorator that applies custom suppressions, custom severity overrides, suppressions parsed from model metadata, and severity overrides parsed from model metadata.
    • Constructor Detail

      • ModelBasedEventDecorator

        public ModelBasedEventDecorator()
    • Method Detail

      • suppressions

        public ModelBasedEventDecorator suppressions​(java.util.Collection<? extends Suppression> suppressions)
        Sets custom suppressions not found in the model.
        Parameters:
        suppressions - Suppressions to set.
        Returns:
        Returns the ModelBasedEventDecorator.
      • severityOverrides

        public ModelBasedEventDecorator severityOverrides​(java.util.Collection<? extends SeverityOverride> severityOverrides)
        Sets custom severity overrides not found in the model.
        Parameters:
        severityOverrides - Severity overrides to set.
        Returns:
        Returns the ModelBasedEventDecorator.