Enum to JSON.
If fromJSON is true in the constructor, the JSON generated will
be of the form {class="com.acme.TrafficLight",value="Green"}
If fromJSON is false, then only the string value of the enum is generated.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Method |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public void |
| _fromJSON | back to summary |
|---|---|
| private boolean _fromJSON | |
| _valueOf | back to summary |
|---|---|
| private Method _valueOf | |
| JSONEnumConvertor | back to summary |
|---|---|
| public JSONEnumConvertor() | |
| JSONEnumConvertor | back to summary |
|---|---|
| public JSONEnumConvertor(boolean fromJSON) | |
| fromJSON | back to summary |
|---|---|
| public Object fromJSON(Map<K, V> map) Implements org. | |
| toJSON | back to summary |
|---|---|
| public void toJSON(Object obj, JSON. Implements org. | |