Class ObjectPathUtils

java.lang.Object
io.jmix.core.metamodel.model.utils.ObjectPathUtils

public class ObjectPathUtils extends Object
  • Constructor Details

    • ObjectPathUtils

      public ObjectPathUtils()
  • Method Details

    • parseValuePath

      public static String[] parseValuePath(@Nullable String path)
      Converts a string of identifiers separated by dots to an array. A part of the given string, enclosed in square brackets, treated as single identifier. For example:
           car.driver.name
           [car.field].driver.name
       
      Parameters:
      path - value path as string
      Returns:
      value path as array or empty array if the input is null
    • formatValuePath

      public static String formatValuePath(String[] path)
      Converts an array of identifiers to a dot-separated string, enclosing identifiers, containing dots, in square brackets.
      Parameters:
      path - value path as array
      Returns:
      value path as string or empty string if the input is null
    • isSpecialPath

      public static boolean isSpecialPath(String path)