Module com.gluonhq.cloudlink.client
Class ConnectMetadataMap
- java.lang.Object
-
- com.gluonhq.impl.cloudlink.client.data.metadata.ConnectMetadataMap
-
- All Implemented Interfaces:
ConnectMetadata<Map>
public class ConnectMetadataMap extends Object implements ConnectMetadata<Map>
-
-
Constructor Summary
Constructors Constructor Description ConnectMetadataMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToJson(javax.json.JsonObjectBuilder jsonObjectBuilder, String fieldName, Map map)
void
addToObject(String fieldName, javax.json.JsonObject jsonObject, Map map)
Map
deserialize(String json)
Map
deserialize(javax.json.JsonObject jsonObject)
Object
deserializeField(String fieldName, javax.json.JsonObject jsonObject)
Object
getFieldValue(String fieldName, Map map)
Map<String,ObservableList>
getObservableLists(Map target)
Map<String,ObservableValue>
getObservables(Map target)
Returns a map with all the observables that can actively be listened on.Class<Map>
getTargetClass()
Map
instantiate(Map<String,javax.json.JsonObject> fieldMap)
javax.json.JsonObject
serialize(Map map)
javax.json.JsonObject
serializeField(String fieldName, Map map)
-
-
-
Method Detail
-
getTargetClass
public Class<Map> getTargetClass()
- Specified by:
getTargetClass
in interfaceConnectMetadata<Map>
-
getObservables
public Map<String,ObservableValue> getObservables(Map target)
Description copied from interface:ConnectMetadata
Returns a map with all the observables that can actively be listened on. The keys are strings that uniquely map to a single field in the metadata. The values are instances of ObservableValue.- Specified by:
getObservables
in interfaceConnectMetadata<Map>
- Returns:
-
getObservableLists
public Map<String,ObservableList> getObservableLists(Map target)
- Specified by:
getObservableLists
in interfaceConnectMetadata<Map>
-
instantiate
public Map instantiate(Map<String,javax.json.JsonObject> fieldMap)
- Specified by:
instantiate
in interfaceConnectMetadata<Map>
-
getFieldValue
public Object getFieldValue(String fieldName, Map map)
- Specified by:
getFieldValue
in interfaceConnectMetadata<Map>
-
deserializeField
public Object deserializeField(String fieldName, javax.json.JsonObject jsonObject)
- Specified by:
deserializeField
in interfaceConnectMetadata<Map>
-
serializeField
public javax.json.JsonObject serializeField(String fieldName, Map map)
- Specified by:
serializeField
in interfaceConnectMetadata<Map>
-
addToObject
public void addToObject(String fieldName, javax.json.JsonObject jsonObject, Map map)
- Specified by:
addToObject
in interfaceConnectMetadata<Map>
-
addToJson
public void addToJson(javax.json.JsonObjectBuilder jsonObjectBuilder, String fieldName, Map map)
- Specified by:
addToJson
in interfaceConnectMetadata<Map>
-
deserialize
public Map deserialize(javax.json.JsonObject jsonObject)
- Specified by:
deserialize
in interfaceConnectMetadata<Map>
-
deserialize
public Map deserialize(String json)
- Specified by:
deserialize
in interfaceConnectMetadata<Map>
-
serialize
public javax.json.JsonObject serialize(Map map)
- Specified by:
serialize
in interfaceConnectMetadata<Map>
-
-