Class EventGroupRules
- java.lang.Object
-
- com.intellij.internal.statistic.eventLog.validator.rules.beans.EventGroupRules
-
public final class EventGroupRules extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static EventGroupRulesEMPTY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareEventDataRulesDefined()booleanareEventIdRulesDefined()static @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 java.util.List<java.lang.String> excludedFields)java.util.Map<java.lang.String,FUSRule[]>getEventDataRules()FUSRule[]getEventIdRules()com.intellij.internal.statistic.eventLog.validator.rules.impl.beans.EventDataFieldvalidateEventData(@NotNull java.lang.String key, @Nullable java.lang.Object data, @NotNull EventContext context)ValidationResultTypevalidateEventId(@NotNull EventContext context)
-
-
-
Field Detail
-
EMPTY
public static final EventGroupRules EMPTY
-
-
Method Detail
-
getEventIdRules
public FUSRule[] getEventIdRules()
-
getEventDataRules
public java.util.Map<java.lang.String,FUSRule[]> getEventDataRules()
-
areEventIdRulesDefined
public boolean areEventIdRulesDefined()
-
areEventDataRulesDefined
public boolean areEventDataRulesDefined()
-
validateEventId
public ValidationResultType validateEventId(@NotNull @NotNull EventContext context)
-
validateEventData
public com.intellij.internal.statistic.eventLog.validator.rules.impl.beans.EventDataField validateEventData(@NotNull @NotNull java.lang.String key, @Nullable @Nullable java.lang.Object data, @NotNull @NotNull EventContext context)- Returns:
- validated data, incorrect values are replaced with
ValidationResultType.getDescription()
-
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 java.util.List<java.lang.String> excludedFields)
-
-