Class StatisticsEventEscaper


  • @Internal
    public final class StatisticsEventEscaper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @Nullable java.lang.String cleanupForLegacyRulesIfNeeded​(@NotNull java.lang.String str)
      Removes symbols prohibited in 2020.2 or earlier versions but allowed in 2020.3+.
      static @NotNull java.lang.String escape​(@NotNull java.lang.String str)
      Only printable ASCII symbols except whitespaces and :;,'" are allowed.
      static @NotNull java.lang.String escapeEventIdOrFieldValue​(@NotNull java.lang.String str)
      Only printable ASCII symbols except whitespaces and '" are allowed.
      static @NotNull java.lang.String escapeFieldName​(@NotNull java.lang.String str)
      Only printable ASCII symbols except whitespaces and .:;,'" are allowed.
      static boolean isWhiteSpaceToReplace​(char c)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatisticsEventEscaper

        public StatisticsEventEscaper()
    • Method Detail

      • escapeEventIdOrFieldValue

        @NotNull
        public static @NotNull java.lang.String escapeEventIdOrFieldValue​(@NotNull
                                                                          @NotNull java.lang.String str)
        Only printable ASCII symbols except whitespaces and '" are allowed.
      • escape

        @NotNull
        public static @NotNull java.lang.String escape​(@NotNull
                                                       @NotNull java.lang.String str)
        Only printable ASCII symbols except whitespaces and :;,'" are allowed.
      • escapeFieldName

        @NotNull
        public static @NotNull java.lang.String escapeFieldName​(@NotNull
                                                                @NotNull java.lang.String str)
        Only printable ASCII symbols except whitespaces and .:;,'" are allowed.
      • cleanupForLegacyRulesIfNeeded

        @Nullable
        public static @Nullable java.lang.String cleanupForLegacyRulesIfNeeded​(@NotNull
                                                                               @NotNull java.lang.String str)
        Removes symbols prohibited in 2020.2 or earlier versions but allowed in 2020.3+. Used for backward compatibility with validation rules create before 2020.2.
        Returns:
        null if there are no prohibited symbols
      • isWhiteSpaceToReplace

        public static boolean isWhiteSpaceToReplace​(char c)