Class EnumValidationRule
- java.lang.Object
-
- com.intellij.internal.statistic.eventLog.validator.rules.PerformanceCareRule
-
- com.intellij.internal.statistic.eventLog.validator.rules.impl.EnumValidationRule
-
- All Implemented Interfaces:
FUSRegexpAwareRule,FUSRule
public class EnumValidationRule extends PerformanceCareRule implements FUSRegexpAwareRule
-
-
Field Summary
-
Fields inherited from interface com.intellij.internal.statistic.eventLog.validator.rules.FUSRule
EMPTY_ARRAY, FALSE, TRUE
-
-
Constructor Summary
Constructors Constructor Description EnumValidationRule(@Nullable java.util.Collection<java.lang.String> strings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.StringasRegexp()@NotNull ValidationResultTypedoValidate(@NotNull java.lang.String data, @NotNull EventContext context)Validates event id and event data before recording it locally.java.lang.StringtoString()-
Methods inherited from class com.intellij.internal.statistic.eventLog.validator.rules.PerformanceCareRule
validate
-
-
-
-
Method Detail
-
doValidate
@NotNull public @NotNull ValidationResultType doValidate(@NotNull @NotNull java.lang.String data, @NotNull @NotNull EventContext context)
Description copied from class:PerformanceCareRuleValidates 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;
- Specified by:
doValidatein classPerformanceCareRule- 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.
-
asRegexp
@NotNull public @NotNull java.lang.String asRegexp()
- Specified by:
asRegexpin interfaceFUSRegexpAwareRule
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-