Class ExpressionValidationRule

java.lang.Object
com.intellij.internal.statistic.eventLog.validator.rules.PerformanceCareRule
com.intellij.internal.statistic.eventLog.validator.rules.impl.ExpressionValidationRule
All Implemented Interfaces:
com.intellij.internal.statistic.eventLog.validator.rules.FUSRule

public class ExpressionValidationRule extends PerformanceCareRule
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.intellij.internal.statistic.eventLog.validator.rules.FUSRule

    com.intellij.internal.statistic.eventLog.validator.rules.FUSRule.Companion, com.intellij.internal.statistic.eventLog.validator.rules.FUSRule.FUSRuleType
  • Field Summary

    Fields inherited from interface com.intellij.internal.statistic.eventLog.validator.rules.FUSRule

    Companion, EMPTY_ARRAY, FALSE, TRUE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExpressionValidationRule(@NotNull com.intellij.internal.statistic.eventLog.validator.rules.FUSRule rule, @NotNull String prefix, @NotNull String suffix)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull com.intellij.internal.statistic.eventLog.validator.ValidationResultType
    doValidate(@NotNull String data, @NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context)
    Validates event id and event data before recording it locally.
     

    Methods inherited from class com.intellij.internal.statistic.eventLog.validator.rules.PerformanceCareRule

    validate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.intellij.internal.statistic.eventLog.validator.rules.FUSRule

    getRuleType
  • Constructor Details

    • ExpressionValidationRule

      public ExpressionValidationRule(@NotNull @NotNull com.intellij.internal.statistic.eventLog.validator.rules.FUSRule rule, @NotNull @NotNull String prefix, @NotNull @NotNull String suffix)
  • Method Details

    • doValidate

      @NotNull public @NotNull com.intellij.internal.statistic.eventLog.validator.ValidationResultType doValidate(@NotNull @NotNull String data, @NotNull @NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context)
      Description copied from class: PerformanceCareRule

      Validates event id and event data before recording it locally. Used to ensure that no personal or proprietary data is recorded.

      • ValidationResultType.ACCEPTED - data is checked and should be recorded as is;
      • ValidationResultType.THIRD_PARTY - data is correct but is implemented in an unknown third-party plugin, e.g. third-party file type
      • ValidationResultType.REJECTED - unexpected data, e.g. cannot find run-configuration by provided id;
      Specified by:
      doValidate in class PerformanceCareRule
      Parameters:
      data - what is validated. Event id or the value of event data field.
      context - whole event context, i.e. both event id and event data.
    • toString

      public String toString()
      Overrides:
      toString in class Object