Revize 446aa6fb
Přidáno uživatelem Michal Horký před asi 4 roky(ů)
project/Deserializer/src/jdeserialize/enumobj.java | ||
---|---|---|
1 | 1 |
package jdeserialize; |
2 | 2 |
|
3 |
import java.util.Map; |
|
4 |
|
|
3 | 5 |
/** |
4 | 6 |
* <p> |
5 |
* Represents an enum instance. As noted in the serialization spec, this consists of |
|
6 |
* merely the class description (represented by a classdesc) and the string corresponding |
|
7 |
* to the enum's value. No other fields are ever serialized. |
|
7 |
* Represents an enum instance. As noted in the serialization spec, this |
|
8 |
* consists of merely the class description (represented by a classdesc) and the |
|
9 |
* string corresponding to the enum's value. No other fields are ever |
|
10 |
* serialized. |
|
8 | 11 |
* </p> |
9 | 12 |
*/ |
10 | 13 |
public class enumobj extends contentbase { |
... | ... | |
31 | 34 |
this.classdesc = cd; |
32 | 35 |
this.value = so; |
33 | 36 |
} |
34 |
public @Override String toJson(String indetation) { |
|
37 |
public @Override String toJson(String indetation, Map<classdesc, Map<field, Object>> fielddata) {
|
|
35 | 38 |
return this.value.value; |
36 | 39 |
} |
37 | 40 |
|
Také k dispozici: Unified diff
re #7879
Soubory Converter.java a instance.java změněny.