public interface IEntity
Modifier and Type | Method and Description |
---|---|
<T extends Data> |
addData(T someData)
Adds the given data to an entity.
|
java.util.List<? extends Data> |
getAllData()
Return a list containing all data attached to the entity.
|
<T extends Data> |
getData(java.lang.Class<T> someDataClassType)
Returns the given data of an entity.
|
long |
getId()
The id of an entity.
|
java.lang.String |
getName()
The name of an entity.
|
<T extends Data> |
removeData(java.lang.Class<T> someDataClassType)
Removes the data of given type from an entity.
|
void |
update()
Propagate all changes made to this entity.
|
<T extends Data> void addData(T someData) throws YanecosException
T
- T extends Data.someData
- Some data to add.YanecosException
<T extends Data> T getData(java.lang.Class<T> someDataClassType) throws YanecosException
T
- someDataClassType
- YanecosException
long getId()
java.lang.String getName()
<T extends Data> void removeData(java.lang.Class<T> someDataClassType) throws YanecosException
T
- T extends Data.someDataClassType
- Some type of data to be removed.YanecosException
java.util.List<? extends Data> getAllData() throws YanecosException
YanecosException
void update()