| com.google.gson.FieldNamingStrategy |
Known Indirect Subclasses
| FieldNamingPolicy |
An enumeration that defines a few standard naming conventions for JSON field names. |
|
Class Overview
A mechanism for providing custom field naming in Gson. This allows the client code to translate
field names into a particular convention that is not supported as a normal Java field
declaration rules. For example, Java does not support "-" characters in a field name.
Summary
| Public Methods |
|
abstract
String
|
translateName(Field f)
Translates the field name into its JSON field name representation.
|
Public Methods
public
abstract
String
translateName
(Field f)
Translates the field name into its JSON field name representation.
Parameters
| f |
the field object that we are translating |
Returns
- the translated field name.