Package org.dashbuilder.dataset.json
Class BeanDefJSONMarshaller
- java.lang.Object
-
- org.dashbuilder.dataset.json.BeanDefJSONMarshaller
-
- All Implemented Interfaces:
DataSetDefJSONMarshallerExt<BeanDataSetDef>
public class BeanDefJSONMarshaller extends Object implements DataSetDefJSONMarshallerExt<BeanDataSetDef>
-
-
Field Summary
Fields Modifier and Type Field Description static StringGENERATOR_CLASSstatic StringGENERATOR_PARAMSstatic BeanDefJSONMarshallerINSTANCEstatic StringPARAMstatic StringVALUE
-
Constructor Summary
Constructors Constructor Description BeanDefJSONMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromJson(BeanDataSetDef def, org.dashbuilder.json.JsonObject json)Updates the given data set def instance with the status stored into the json object passed as a parameter.voidtoJson(BeanDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)Writes into the given json object the status of the data set def instance.protected org.dashbuilder.json.JsonObjecttoJsonParameter(String key, String value)
-
-
-
Field Detail
-
INSTANCE
public static BeanDefJSONMarshaller INSTANCE
-
GENERATOR_CLASS
public static final String GENERATOR_CLASS
- See Also:
- Constant Field Values
-
GENERATOR_PARAMS
public static final String GENERATOR_PARAMS
- See Also:
- Constant Field Values
-
PARAM
public static final String PARAM
- See Also:
- Constant Field Values
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromJson
public void fromJson(BeanDataSetDef def, org.dashbuilder.json.JsonObject json)
Description copied from interface:DataSetDefJSONMarshallerExtUpdates the given data set def instance with the status stored into the json object passed as a parameter.- Specified by:
fromJsonin interfaceDataSetDefJSONMarshallerExt<BeanDataSetDef>
-
toJson
public void toJson(BeanDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)
Description copied from interface:DataSetDefJSONMarshallerExtWrites into the given json object the status of the data set def instance.- Specified by:
toJsonin interfaceDataSetDefJSONMarshallerExt<BeanDataSetDef>
-
-