public class JsonConverter<T> extends Object implements TypeConverter<T>
Json| Constructor and Description |
|---|
JsonConverter()
Creates JsonConverter instance which is applied to the properties which has "converter"
meta-attribute with value "json" assigned.
|
JsonConverter(boolean ignoreConverterAttribute)
Creates JsonConverter instance.
|
| Modifier and Type | Method and Description |
|---|---|
T |
fromString(Type type,
String value,
Map<String,String> attributes) |
boolean |
isApplicable(Type type,
Map<String,String> attributes) |
String |
toString(Type type,
T value,
Map<String,String> attributes) |
public JsonConverter()
Jsonpublic JsonConverter(boolean ignoreConverterAttribute)
ignoreConverterAttribute - flag indicating whether "converter"
meta-attribute should be ignored (when true) or checked (when false).Jsonpublic boolean isApplicable(Type type, Map<String,String> attributes)
isApplicable in interface TypeConverter<T>public T fromString(Type type, String value, Map<String,String> attributes)
fromString in interface TypeConverter<T>Copyright © 2017–2018 Sabre GLBL Inc.. All rights reserved.