|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.plovr.CustomPassConfig.CustomPassConfigDeserializer
public static class CustomPassConfig.CustomPassConfigDeserializer
Unfortunately, CustomPassConfig needs a custom deserializer because
"class" is a Java keyword, so having a getClass() setter that returns a
String is problematic. All plovr options are hyphenated rather than
camel cased, so they do not work out of the box with Gson deserialization.
| Constructor Summary | |
|---|---|
CustomPassConfig.CustomPassConfigDeserializer()
|
|
| Method Summary | |
|---|---|
CustomPassConfig |
deserialize(JsonElement json,
java.lang.reflect.Type typeOfT,
JsonDeserializationContext context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomPassConfig.CustomPassConfigDeserializer()
| Method Detail |
|---|
public CustomPassConfig deserialize(JsonElement json,
java.lang.reflect.Type typeOfT,
JsonDeserializationContext context)
throws JsonParseException
deserialize in interface JsonDeserializer<CustomPassConfig>JsonParseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||