public abstract class JsonEntity extends Entity
changeSupport| Constructor and Description |
|---|
JsonEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(File file) |
void |
fromJson(Object json) |
void |
fromJson(Reader reader) |
void |
fromJson(String json) |
protected Field |
getFieldByName(Class entity,
String fieldName) |
protected String |
getFieldName(Field field) |
protected ArrayList<Field> |
getFields(Class entity) |
protected void |
initialize() |
protected void |
listen() |
protected abstract void |
parse(Object obj) |
abstract Object |
prepareJson(LinkedList<String> fields) |
protected Object |
prepareJsonValue(Object value) |
String |
toJson() |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerprotected void initialize()
protected void listen()
protected abstract void parse(Object obj)
public abstract Object prepareJson(LinkedList<String> fields)
public String toJson()
public void fromJson(Object json)
public void fromJson(String json)
public void fromJson(File file) throws IOException
IOExceptionpublic void fromJson(Reader reader) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.