Package org.dashbuilder.dataset.json
Class CSVDefJSONMarshaller
- java.lang.Object
-
- org.dashbuilder.dataset.json.CSVDefJSONMarshaller
-
- All Implemented Interfaces:
DataSetDefJSONMarshallerExt<CSVDataSetDef>
public class CSVDefJSONMarshaller extends Object implements DataSetDefJSONMarshallerExt<CSVDataSetDef>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATEPATTERNstatic StringESCAPECHARstatic StringFILEPATHstatic StringFILEURLstatic CSVDefJSONMarshallerINSTANCEstatic StringNUMBERPATTERNstatic StringQUOTECHARstatic StringSEPARATORCHAR
-
Constructor Summary
Constructors Constructor Description CSVDefJSONMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromJson(CSVDataSetDef 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.StringparseCodePoint(String codePoint)voidtoJson(CSVDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)Writes into the given json object the status of the data set def instance.
-
-
-
Field Detail
-
INSTANCE
public static CSVDefJSONMarshaller INSTANCE
-
FILEURL
public static final String FILEURL
- See Also:
- Constant Field Values
-
FILEPATH
public static final String FILEPATH
- See Also:
- Constant Field Values
-
SEPARATORCHAR
public static final String SEPARATORCHAR
- See Also:
- Constant Field Values
-
QUOTECHAR
public static final String QUOTECHAR
- See Also:
- Constant Field Values
-
ESCAPECHAR
public static final String ESCAPECHAR
- See Also:
- Constant Field Values
-
DATEPATTERN
public static final String DATEPATTERN
- See Also:
- Constant Field Values
-
NUMBERPATTERN
public static final String NUMBERPATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromJson
public void fromJson(CSVDataSetDef 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<CSVDataSetDef>
-
toJson
public void toJson(CSVDataSetDef 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<CSVDataSetDef>
-
-