occiware / OCCI-Studio

OCCI Studio
Eclipse Public License 1.0
11 stars 2 forks source link

API Support for retrieving all AttributeStates for an Entity #43

Closed kortef closed 6 years ago

kortef commented 6 years ago

Currently an Entityhas a method getAttributes() which returns all AttributeStates that belong to the Entity itself. To additionally retrieve all AttributeStates that are defined by the MixinBases belonging to the Entity, one has to retrieve the MixinBases first and then collect all their AttributeStates.

For convenience, I suggest to add another method for Entity, e.g., getAllAttributes() that returns a combined list comprising the AttributeStates that are part of the Entity AND those that are part of its MixinBases.

fzalila commented 6 years ago

A method getWholeAttributes (Entity) has been added in OcciHelper. It allows to retreive the different attributes of an entity as well as its mixinbases ones. commit d3de2476107c5e84b62ff3f75179e9f441e77aab resolves this issue.