public abstract class AbstractJsonObject<V> extends JsonEntity implements JsonCollection
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,V> |
properties |
changeSupport| Constructor and Description |
|---|
AbstractJsonObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
V |
get(String property)
Returns the property value.
|
protected List<String> |
getOwnProperties() |
boolean |
has(String property)
Returns whether the given property is present.
|
protected void |
parse(Object obj) |
protected void |
parseField(org.json.simple.JSONObject json,
String property) |
protected void |
parseValue(org.json.simple.JSONObject json,
String property) |
Object |
prepareJson(LinkedList<String> fields) |
void |
remove(String property)
Removes the given property.
|
void |
set(String property,
Object value)
Sets a new value for the given property.
|
protected void |
set(String property,
Object value,
boolean notify)
Sets a new value for the given property.
|
int |
size() |
fromJson, fromJson, fromJson, fromJson, getFieldByName, getFieldName, getFields, initialize, listen, prepareJsonValue, toJsonaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerprotected void parse(Object obj)
parse in class JsonEntityprotected void parseValue(org.json.simple.JSONObject json,
String property)
protected void parseField(org.json.simple.JSONObject json,
String property)
public Object prepareJson(LinkedList<String> fields)
prepareJson in class JsonEntitypublic int size()
size in interface JsonCollectionpublic void clear()
clear in interface JsonCollectionpublic boolean has(String property)
property - the property to look fortrue property presentfalse property not presentpublic V get(String property)
property - the propertypublic void set(String property, Object value)
property - the propertyvalue - the new valueprotected void set(String property, Object value, boolean notify)
property - the propertyvalue - the new valuenotify - whether listeners should be notified about the changepublic void remove(String property)
property - the propertyCopyright © 2013. All Rights Reserved.