public abstract class AbstractJsonObject<V> extends JsonEntity implements JsonCollection
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,V> |
properties |
sortOrderchangeSupport| Constructor and Description |
|---|
AbstractJsonObject() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
buildJson() |
void |
clear() |
protected void |
doParse(Object obj) |
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 |
parseField(LinkedHashMap json,
String property) |
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() |
appendSortOrder, fromJson, fromJson, fromJson, fromJson, getFieldByName, getFieldName, getFieldNames, getFields, getJsonValue, initialize, listen, toJsonaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerprotected void doParse(Object obj)
doParse in class JsonEntityprotected void parseField(LinkedHashMap json, String property)
protected Object buildJson()
buildJson 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 © 2014. All rights reserved.