Class ObjectPathUtils
java.lang.Object
io.jmix.core.metamodel.model.utils.ObjectPathUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatValuePath
(String[] path) Converts an array of identifiers to a dot-separated string, enclosing identifiers, containing dots, in square brackets.static boolean
isSpecialPath
(String path) static String[]
parseValuePath
(String path) Converts a string of identifiers separated by dots to an array.
-
Constructor Details
-
ObjectPathUtils
public ObjectPathUtils()
-
-
Method Details
-
parseValuePath
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
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
-