public class DeviceJsonUtils<T extends DeviceSettings> extends Object
Constructor and Description |
---|
DeviceJsonUtils(Class<T> classType)
Constructs a new DeviceJsonUtils which will handle device settings of class supplied as the classType param.
|
Modifier and Type | Method and Description |
---|---|
T |
toDeviceSettingValue(org.forgerock.json.JsonValue jsonValue)
Converts a
JsonValue object to the DeviceSettings object which it represents. |
List<T> |
toDeviceSettingValues(List<org.forgerock.json.JsonValue> jsonValues)
|
org.forgerock.json.JsonValue |
toJsonValue(T deviceSetting)
Converts an
DeviceSettings object to a JsonValue object which represents it. |
List<org.forgerock.json.JsonValue> |
toJsonValues(List<T> deviceSettings)
|
public org.forgerock.json.JsonValue toJsonValue(T deviceSetting) throws IOException
DeviceSettings
object to a JsonValue
object which represents it.deviceSetting
- The DeviceSettings
to convert.JsonValue
object.IOException
- if the DeviceSettings
object could not be converted to a
JsonValue
objectpublic T toDeviceSettingValue(org.forgerock.json.JsonValue jsonValue) throws IOException
JsonValue
object to the DeviceSettings
object which it represents.jsonValue
- The JsonValue
to convert.DeviceSettings
object.IOException
- if the JsonValue
object could not be converted to an
DeviceSettings
objectpublic List<org.forgerock.json.JsonValue> toJsonValues(List<T> deviceSettings) throws IOException
deviceSettings
- The List
of DeviceSettings
to convert.List
of JsonValue
objects.IOException
- if any DeviceSettings
object could not be converted to a
JsonValue
objectpublic List<T> toDeviceSettingValues(List<org.forgerock.json.JsonValue> jsonValues) throws IOException
jsonValues
- The List
of JsonValue
to convert.List
of DeviceSettings
objects.IOException
- if any JsonValue
object could not be converted to an
DeviceSettings
objectCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.