public interface Instance
extends java.io.Serializable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Instance.BeanPropertyPath
Property path descriptor.
|
static class |
Instance.PropertyChangeEvent
Event object for
Instance.PropertyChangeListener. |
static interface |
Instance.PropertyChangeListener
Interface to track changes in data model objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(Instance.PropertyChangeListener listener)
Add listener to track attributes changes.
|
java.lang.String |
getInstanceName()
Deprecated.
|
MetaClass |
getMetaClass() |
<T> T |
getValue(java.lang.String name)
Get an attribute value.
|
<T> T |
getValueEx(Instance.BeanPropertyPath propertyPath)
Get an attribute value.
|
<T> T |
getValueEx(java.lang.String propertyPath)
Get an attribute value.
|
void |
removeAllListeners()
Remove all
Instance.PropertyChangeListeners. |
void |
removePropertyChangeListener(Instance.PropertyChangeListener listener)
Remove listener.
|
void |
setValue(java.lang.String name,
java.lang.Object value)
Set an attribute value.
|
void |
setValueEx(Instance.BeanPropertyPath propertyPath,
java.lang.Object value)
Set an attribute value.
|
void |
setValueEx(java.lang.String propertyPath,
java.lang.Object value)
Set an attribute value.
|
MetaClass getMetaClass()
@Deprecated java.lang.String getInstanceName()
MetadataTools.getInstanceName(com.haulmont.chile.core.model.Instance) instead.NamePattern
or toString().@Nullable <T> T getValue(java.lang.String name)
name - attribute name according to JavaBeans notationvoid setValue(java.lang.String name,
@Nullable
java.lang.Object value)
Instance.PropertyChangeListeners only if the attribute
was actually changed.name - attribute name according to JavaBeans notationvalue - attribute value@Nullable <T> T getValueEx(java.lang.String propertyPath)
car.driver.name.propertyPath - path to an attributeInstance, this method
stops here and returns this value.@Nullable <T> T getValueEx(Instance.BeanPropertyPath propertyPath)
car.driver.name.propertyPath - path to an attributeInstance, this method
stops here and returns this value.void setValueEx(java.lang.String propertyPath,
@Nullable
java.lang.Object value)
car.driver.name.
car.driver attribute, and if it is not
null and is an Instance, sets value of name attribute in it.
Instance.PropertyChangeListeners only if the attribute
was actually changed.propertyPath - path to an attributevalue - attribute valuevoid setValueEx(Instance.BeanPropertyPath propertyPath, java.lang.Object value)
car.driver.name.
car.driver attribute, and if it is not
null and is an Instance, sets value of name attribute in it.
Instance.PropertyChangeListeners only if the attribute
was actually changed.propertyPath - path to an attributevalue - attribute valuevoid addPropertyChangeListener(Instance.PropertyChangeListener listener)
listener - listenervoid removePropertyChangeListener(Instance.PropertyChangeListener listener)
listener - listener to removevoid removeAllListeners()
Instance.PropertyChangeListeners.