Class PluginConfigKeyDetailsDeserializer<T>
- java.lang.Object
-
- com.funnelback.plugin.details.model.deserializer.PluginConfigKeyDetailsDeserializer<T>
-
public class PluginConfigKeyDetailsDeserializer<T> extends Object
This class is used to deserialize objects which implement the PluginConfigKeyDetails class It is required because during the serialization process a pluginId and id are converted to the "key" JsonProperty
-
-
Field Summary
Fields Modifier and Type Field Description private PluginConfigKeyAllowedValue
allowedValue
private T
defaultValue
private String
description
private String
id
private String
key
private String
label
private String
longDescription
private boolean
required
private PluginConfigKeyConditional
showIfKeyHasValue
private PluginConfigKeyType
type
-
Constructor Summary
Constructors Constructor Description PluginConfigKeyDetailsDeserializer()
-
Method Summary
-
-
-
Field Detail
-
key
private String key
-
id
private String id
-
allowedValue
private PluginConfigKeyAllowedValue allowedValue
-
label
private String label
-
description
private String description
-
longDescription
private String longDescription
-
required
private boolean required
-
type
private PluginConfigKeyType type
-
defaultValue
private T defaultValue
-
showIfKeyHasValue
private PluginConfigKeyConditional showIfKeyHasValue
-
-
Method Detail
-
constructKey
public PluginConfigKeyDetailsDeserializer constructKey(String key)
- Parameters:
key
- Value from Deserialized JSON used in the createBean method.
-
constructId
public PluginConfigKeyDetailsDeserializer constructId(String id)
-
constructAllowedValue
public PluginConfigKeyDetailsDeserializer constructAllowedValue(PluginConfigKeyAllowedValue allowedValue)
-
constructDefaultValue
public PluginConfigKeyDetailsDeserializer constructDefaultValue(T defaultValue)
-
constructDescription
public PluginConfigKeyDetailsDeserializer constructDescription(String description)
-
constructLongDescription
public PluginConfigKeyDetailsDeserializer constructLongDescription(String longDescription)
-
constructLabel
public PluginConfigKeyDetailsDeserializer constructLabel(String label)
-
constructRequired
public PluginConfigKeyDetailsDeserializer constructRequired(boolean required)
-
constructShowIfKeyHasValue
public PluginConfigKeyDetailsDeserializer constructShowIfKeyHasValue(PluginConfigKeyConditional showIfKeyHasValue)
-
constructType
public PluginConfigKeyDetailsDeserializer constructType(PluginConfigKeyType type)
-
createBean
public PluginConfigKeyDetails createBean()
The createBean method is executed after the Json object has been deserialized into the above properties. This method inspects the key property that has been deserialized and decides the pluginId and return class.
-
-