Class EventGroupRules
java.lang.Object
com.intellij.internal.statistic.eventLog.validator.rules.beans.DataValidationRules
com.intellij.internal.statistic.eventLog.validator.rules.beans.EventGroupRules
- All Implemented Interfaces:
com.intellij.internal.statistic.eventLog.validator.IDataValidationRules,com.intellij.internal.statistic.eventLog.validator.IEventGroupRules
public final class EventGroupRules
extends DataValidationRules
implements com.intellij.internal.statistic.eventLog.validator.IEventGroupRules
-
Field Summary
FieldsFields inherited from class com.intellij.internal.statistic.eventLog.validator.rules.beans.DataValidationRules
defaultValuesRules, eventDataRules, myExcludedFields, requiredFieldsRules -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic @NotNull EventGroupRulescreate(@NotNull com.jetbrains.fus.reporting.model.metadata.EventGroupRemoteDescriptors.EventGroupRemoteDescriptor group, @NotNull com.intellij.internal.statistic.eventLog.validator.storage.GlobalRulesHolder globalRulesHolder, @NotNull ValidationSimpleRuleFactory factory, @NotNull List<String> excludedFields, com.intellij.internal.statistic.eventLog.validator.DictionaryStorage dictionaryStorage) com.intellij.internal.statistic.eventLog.validator.rules.FUSRule @NotNull []@NotNull com.intellij.internal.statistic.eventLog.validator.rules.impl.beans.EventDataFieldvalidateEventData(@NotNull String key, @Nullable Object data, @NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context) Validates the data for a given event field.@NotNull com.intellij.internal.statistic.eventLog.validator.ValidationResultTypevalidateEventId(@NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context) Methods inherited from class com.intellij.internal.statistic.eventLog.validator.rules.beans.DataValidationRules
areEventDataRulesDefined, create, getEventDataRules, replaceRejectedValuesWithDefaultValues, validateData, validateRequiredFieldsMethods 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.IDataValidationRules
getEventDataRules, replaceRejectedValuesWithDefaultValues, validateData, validateRequiredFields
-
Field Details
-
EMPTY
-
-
Method Details
-
getEventIdRules
public com.intellij.internal.statistic.eventLog.validator.rules.FUSRule @NotNull [] getEventIdRules()- Specified by:
getEventIdRulesin interfacecom.intellij.internal.statistic.eventLog.validator.IEventGroupRules
-
areEventIdRulesDefined
public boolean areEventIdRulesDefined()- Specified by:
areEventIdRulesDefinedin interfacecom.intellij.internal.statistic.eventLog.validator.IEventGroupRules
-
validateEventId
@NotNull public @NotNull com.intellij.internal.statistic.eventLog.validator.ValidationResultType validateEventId(@NotNull @NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context) - Specified by:
validateEventIdin interfacecom.intellij.internal.statistic.eventLog.validator.IEventGroupRules
-
create
@NotNull public static @NotNull EventGroupRules create(@NotNull @NotNull com.jetbrains.fus.reporting.model.metadata.EventGroupRemoteDescriptors.EventGroupRemoteDescriptor group, @NotNull @NotNull com.intellij.internal.statistic.eventLog.validator.storage.GlobalRulesHolder globalRulesHolder, @NotNull @NotNull ValidationSimpleRuleFactory factory, @NotNull @NotNull List<String> excludedFields, com.intellij.internal.statistic.eventLog.validator.DictionaryStorage dictionaryStorage) -
validateEventData
@NotNull public @NotNull com.intellij.internal.statistic.eventLog.validator.rules.impl.beans.EventDataField validateEventData(@NotNull @NotNull String key, @Nullable @Nullable Object data, @NotNull @NotNull com.intellij.internal.statistic.eventLog.validator.IEventContext context) Description copied from class:DataValidationRulesValidates the data for a given event field.- Specified by:
validateEventDatain interfacecom.intellij.internal.statistic.eventLog.validator.IDataValidationRules- Overrides:
validateEventDatain classDataValidationRules- Parameters:
key- The name of event field.data- The data to be validated.context- The event context to store errors.- Returns:
- validated event data field, incorrect values are replaced with
ValidationResultType.getDescription().
-