Module com.gluonhq.cloudlink.client
Class ConnectMetadataString
- java.lang.Object
-
- com.gluonhq.impl.cloudlink.client.data.metadata.ConnectMetadataString
-
- All Implemented Interfaces:
ConnectMetadata<String>
public class ConnectMetadataString extends Object implements ConnectMetadata<String>
-
-
Constructor Summary
Constructors Constructor Description ConnectMetadataString()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToJson(javax.json.JsonObjectBuilder jsonObjectBuilder, String fieldName, String string)
void
addToObject(String fieldName, javax.json.JsonObject jsonObject, String object)
String
deserialize(String json)
String
deserialize(javax.json.JsonObject jsonObject)
Object
deserializeField(String fieldName, javax.json.JsonObject jsonObject)
Object
getFieldValue(String fieldName, String string)
Map<String,ObservableList>
getObservableLists(String target)
Map<String,ObservableValue>
getObservables(String target)
Returns a map with all the observables that can actively be listened on.Class<String>
getTargetClass()
String
instantiate(Map<String,javax.json.JsonObject> fieldMap)
javax.json.JsonObject
serialize(String string)
javax.json.JsonObject
serializeField(String fieldName, String string)
-
-
-
Method Detail
-
getTargetClass
public Class<String> getTargetClass()
- Specified by:
getTargetClass
in interfaceConnectMetadata<String>
-
getObservables
public Map<String,ObservableValue> getObservables(String 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<String>
- Returns:
-
getObservableLists
public Map<String,ObservableList> getObservableLists(String target)
- Specified by:
getObservableLists
in interfaceConnectMetadata<String>
-
instantiate
public String instantiate(Map<String,javax.json.JsonObject> fieldMap)
- Specified by:
instantiate
in interfaceConnectMetadata<String>
-
getFieldValue
public Object getFieldValue(String fieldName, String string)
- Specified by:
getFieldValue
in interfaceConnectMetadata<String>
-
deserializeField
public Object deserializeField(String fieldName, javax.json.JsonObject jsonObject)
- Specified by:
deserializeField
in interfaceConnectMetadata<String>
-
serializeField
public javax.json.JsonObject serializeField(String fieldName, String string)
- Specified by:
serializeField
in interfaceConnectMetadata<String>
-
addToObject
public void addToObject(String fieldName, javax.json.JsonObject jsonObject, String object)
- Specified by:
addToObject
in interfaceConnectMetadata<String>
-
addToJson
public void addToJson(javax.json.JsonObjectBuilder jsonObjectBuilder, String fieldName, String string)
- Specified by:
addToJson
in interfaceConnectMetadata<String>
-
deserialize
public String deserialize(javax.json.JsonObject jsonObject)
- Specified by:
deserialize
in interfaceConnectMetadata<String>
-
deserialize
public String deserialize(String json)
- Specified by:
deserialize
in interfaceConnectMetadata<String>
-
serialize
public javax.json.JsonObject serialize(String string)
- Specified by:
serialize
in interfaceConnectMetadata<String>
-
-