Class TreeUtils

java.lang.Object
de.hybris.platform.cockpit.util.TreeUtils

public class TreeUtils extends Object
Provides useful functionalities for zk trees, especially for searching within treenodes.
  • Constructor Details

    • TreeUtils

      public TreeUtils()
  • Method Details

    • matchCamelCase

      public static boolean matchCamelCase(String value, String searchString)
      Camelcase string matching.
      Parameters:
      value - the string that should be checked.
      searchString - the "camelcased" search string.
      Returns:
      true, if the search string is a camelcase representation of the value.
    • matchFilterStringSimple

      public static boolean matchFilterStringSimple(String value, String filterString)
      Checks, if argument value starts (case-insensitive) with argument filterString.
    • matchFilterString

      public static boolean matchFilterString(Object data, String filterString, boolean camelCase)
      Checks, if argument data can be represented by argument filterString, i.e. it first checks, if data is a String, then invokes matchFilterString(Object, String, boolean) and optionally invokes matchCamelCase(String, String), depending on argument camelCase.