public interface DataFormat
Modifier and Type | Method and Description |
---|---|
boolean |
canMap(Object value)
Returns true if this data format can map the provided Java Object.
|
String |
getCanonicalTypeName(Object value)
Returns a data-format-specific canonical type name.
|
String |
getName()
Returns the data format name.
|
<T> T |
readValue(String value,
Class<T> cls)
Reads the internal representation of a data format to a java object of the
desired class.
|
<T> T |
readValue(String value,
String typeIdentifier)
Reads the internal representation of a data format to a java object of the
desired class.
|
String |
writeValue(Object value)
Writes a java object to a data format's internal data representation.
|
String getName()
boolean canMap(Object value)
parameter
- the java object to checkString writeValue(Object value)
value
- object that is written into internal data representation<T> T readValue(String value, String typeIdentifier)
value
- the object to be readtypeIdentifier
- the class to map the object to<T> T readValue(String value, Class<T> cls)
value
- the object to be readcls
- a data-format-specific type identifier that describes
the class to map toCopyright © 2022. All rights reserved.