public class EntityBase extends EntityCore
Constructor and Description |
---|
EntityBase(Object source)
Creates an instance of the
Entity class
with the provided source object. |
Modifier and Type | Method and Description |
---|---|
EntityProperty |
createProperty(String coreProperty,
Object propertyType) |
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 void setProperty(EntityProperty target, Object value)
target
- an instance of EntityProperty
class representing the property to set.value
- the value to set.public Object getProperty(EntityProperty source)
source
- an instance of the EntityProperty
class representing the property to get.public Iterable<EntityProperty> properties()
EntityProperty
instances
representing the editable fields of the associated source object.Iterable
implementation containing the editable properties.public Object getSourceObject()
public EntityProperty createProperty(String coreProperty, Object propertyType)