public final class UserAttributeUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
convertToJsonObject(IMonitorField.DataType dataType,
Object o)
Returns the JSON raw object version for the given object.
|
static List<Object> |
deserializeValueFromArray(IMonitorField.DataType dataType,
org.json.JSONArray arr)
Deserialize values from a JSON array.
|
static List<Object> |
deserializeValueFromString(String attributeId,
String value)
Deserialize a value from a string representation.
|
static Object |
getFromJsonString(IMonitorField.DataType dataType,
String o)
Returns a value from a raw JSON value in String.
|
static org.json.JSONArray |
serializeValueToArray(IMonitorField.DataType dataType,
Collection<Object> value)
Serializes a value to a JSON array.
|
static String |
serializeValueToString(String attributeId,
Collection<Object> value)
Serializes a value for a given attribute.
|
public static List<Object> deserializeValueFromString(String attributeId, String value)
attributeId
- the user attribute identifier.value
- the value.public static List<Object> deserializeValueFromArray(IMonitorField.DataType dataType, org.json.JSONArray arr)
dataType
- the data typearr
- the arraypublic static Object getFromJsonString(IMonitorField.DataType dataType, String o)
dataType
- the data typeo
- the raw JSON value in string.public static String serializeValueToString(String attributeId, Collection<Object> value)
attributeId
- the attribute identifiervalue
- the valuepublic static org.json.JSONArray serializeValueToArray(IMonitorField.DataType dataType, Collection<Object> value)
dataType
- the data typevalue
- the valuepublic static Object convertToJsonObject(IMonitorField.DataType dataType, Object o)
dataType
- the data typeo
- the objectLumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.