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 Details

  • Method Details

    • getEventIdRules

      public com.intellij.internal.statistic.eventLog.validator.rules.FUSRule @NotNull [] getEventIdRules()
      Specified by:
      getEventIdRules in interface com.intellij.internal.statistic.eventLog.validator.IEventGroupRules
    • areEventIdRulesDefined

      public boolean areEventIdRulesDefined()
      Specified by:
      areEventIdRulesDefined in interface com.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:
      validateEventId in interface com.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: DataValidationRules
      Validates the data for a given event field.
      Specified by:
      validateEventData in interface com.intellij.internal.statistic.eventLog.validator.IDataValidationRules
      Overrides:
      validateEventData in class DataValidationRules
      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().