Class PerformanceCareRule
java.lang.Object
com.intellij.internal.statistic.eventLog.validator.rules.PerformanceCareRule
- All Implemented Interfaces:
com.intellij.internal.statistic.eventLog.validator.rules.FUSRule
- Direct Known Subclasses:
EnumValidationRule,ExpressionValidationRule
public abstract class PerformanceCareRule
extends Object
implements com.intellij.internal.statistic.eventLog.validator.rules.FUSRule
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @NotNull com.intellij.internal.statistic.eventLog.validator.ValidationResultTypedoValidate(@NotNull String data, @NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context) Validates event id and event data before recording it locally.final @NotNull com.intellij.internal.statistic.eventLog.validator.ValidationResultTypevalidate(@NotNull String data, @NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.intellij.internal.statistic.eventLog.validator.rules.FUSRule
getRuleType
-
Constructor Details
-
PerformanceCareRule
public PerformanceCareRule()
-
-
Method Details
-
validate
@NotNull public final @NotNull com.intellij.internal.statistic.eventLog.validator.ValidationResultType validate(@NotNull @NotNull String data, @NotNull @NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context) - Specified by:
validatein interfacecom.intellij.internal.statistic.eventLog.validator.rules.FUSRule
-
doValidate
@NotNull protected abstract @NotNull com.intellij.internal.statistic.eventLog.validator.ValidationResultType doValidate(@NotNull @NotNull String data, @NotNull @NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context) 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 typeValidationResultType.REJECTED- unexpected data, e.g. cannot find run-configuration by provided id;
- 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.
-