public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
convertListToArray(List<T> list,
Class<T> type)
Converts a list to an array.
|
static String[] |
convertMapToStrings(Map<String,String> templateParams)
Convert a map of string key and string value into a string array
where values are in the form key=value.
|
static Map<String,String> |
convertValuesToMap(javax.jcr.Value[] values)
Converts an array of
Value into a map of string. |
static String[] |
convertValuesToStrings(javax.jcr.Value[] values)
Converts array of Value to array of string.
|
static String |
getPropertiesNamePattern(String[] propertyNames)
Gets properties name pattern from an array of property names.
|
public static String getPropertiesNamePattern(String[] propertyNames)
propertyNames - public static String[] convertValuesToStrings(javax.jcr.Value[] values) throws Exception
values - Exceptionpublic static String[] convertMapToStrings(Map<String,String> templateParams)
templateParams - public static Map<String,String> convertValuesToMap(javax.jcr.Value[] values)
Value into a map of string.
The values are expected to be of string type and in the form key=valuevalues - Copyright © 2003–2018 eXo Platform SAS. All rights reserved.