org.entityfs.event
Interface ChildEntitiesEvent<T extends ChildEntitiesEvent<?>>

All Superinterfaces:
EntityEvent<T>
All Known Subinterfaces:
OneChildEntityEvent<T>
All Known Implementing Classes:
AbstractChildEntitiesEvent, AbstractOneChildEntityEvent, ChildEntitiesAddedEvent, ChildEntitiesModifiedEvent, ChildEntitiesRemovedEvent, ChildEntitiesStabilizedEvent, ChildEntityAddedEvent, ChildEntityDisappearedEvent, ChildEntityModifiedEvent, ChildEntityRemovedEvent, ChildEntityRenamedEvent

public interface ChildEntitiesEvent<T extends ChildEntitiesEvent<?>>
extends EntityEvent<T>

This interface is implemented by events that contain a collection of child entity views in addition to the sender entity view.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
entityfs-core

Method Summary
 T copy(EntityView ev, Collection<? extends EntityView> entities)
          This is a variant of EntityEvent.copy(EntityView) that sets the given entity view as sender and the collection of entity views as child entities.
 Collection<EntityView> getChildEntities()
          Get the collection of child entities that were affected by this event.
 
Methods inherited from interface org.entityfs.event.EntityEvent
copy, getSender
 

Method Detail

getChildEntities

Collection<EntityView> getChildEntities()
Get the collection of child entities that were affected by this event.

Returns:
The collection of child entities. Possibly an empty collection, but never null.

copy

T copy(EntityView ev,
       Collection<? extends EntityView> entities)
This is a variant of EntityEvent.copy(EntityView) that sets the given entity view as sender and the collection of entity views as child entities.

Parameters:
ev - The sender
entities - The child entities.