public interface Attribute<E,V> extends AbstractAttribute<String,V>
Attributes
in the sense that an instance of this represents the Attribute itself while Attributes
represents the entity containing the Attributes.Modifier and Type | Method and Description |
---|---|
E |
getEntity()
Reference to the entity this Attribute is part of
|
String |
getName() |
V |
getValue() |
void |
setEntity(E entity)
Reference to the entity this Attribute is part of
|
void |
setName(String name) |
void |
setValue(V value) |
void |
updateValue()
Attributes may have additional transient fields that we may want to flush into the actual
setValue(Object) . |
V getValue()
getValue
in interface AbstractAttribute<String,V>
void setValue(V value)
setValue
in interface AbstractAttribute<String,V>
String getName()
getName
in interface AbstractAttribute<String,V>
void setName(String name)
setName
in interface AbstractAttribute<String,V>
E getEntity()
void setEntity(E entity)
void updateValue()
setValue(Object)
.
A Calling API can ensure the Attribute object is updated before it is persisted or passed on by committing all transient data into the value.Copyright © 2018. All rights reserved.