public class JsonEntity extends EntityCore
Constructor and Description |
---|
JsonEntity(JSONObject json) |
Modifier and Type | Method and Description |
---|---|
Object |
getProperty(EntityProperty source)
Gets the value of the provided property.
|
Object |
getSourceObject() |
Iterable<EntityProperty> |
properties()
Returns the
EntityProperty instances
representing the editable fields of the associated source object. |
void |
setProperty(EntityProperty target,
Object value)
Sets the given property with the provided value.
|
addCommitListener, addValidationListener, notifyCommitListenersAfter, notifyCommitListenersBefore, notifyDidValidate, notifyValidate, removeCommitListener, removeValidationListener
public JsonEntity(JSONObject json)
public Object getProperty(EntityProperty source)
Entity
source
- an instance of the EntityProperty
class representing the property to get.public void setProperty(EntityProperty target, Object value)
Entity
target
- an instance of EntityProperty
class representing the property to set.value
- the value to set.public Object getSourceObject()
public Iterable<EntityProperty> properties()
Entity
EntityProperty
instances
representing the editable fields of the associated source object.Iterable
implementation containing the editable properties.