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