org.entityfs.event
Class ChildEntityRenamedEvent

java.lang.Object
  extended by org.entityfs.event.AbstractEntityEvent<T>
      extended by org.entityfs.event.AbstractChildEntitiesEvent<T>
          extended by org.entityfs.event.AbstractOneChildEntityEvent<ChildEntityRenamedEvent>
              extended by org.entityfs.event.ChildEntityRenamedEvent
All Implemented Interfaces:
ChildEntitiesEvent<ChildEntityRenamedEvent>, EntityEvent<ChildEntityRenamedEvent>, OneChildEntityEvent<ChildEntityRenamedEvent>

public final class ChildEntityRenamedEvent
extends AbstractOneChildEntityEvent<ChildEntityRenamedEvent>

This event is sent by a directory view when one of its child entities have been renamed without moving it to another directory.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
ChildEntityRenamedEvent(EntityView sender, EntityView entity, String oldName)
           
 
Method Summary
 ChildEntityRenamedEvent copy(EntityView sender, 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.
 boolean equals(Object o)
           
 String getOldName()
           
 int hashCode()
           
 
Methods inherited from class org.entityfs.event.AbstractOneChildEntityEvent
getChildEntity
 
Methods inherited from class org.entityfs.event.AbstractChildEntitiesEvent
copy, getChildEntities, getChildEntitiesInternal, toString
 
Methods inherited from class org.entityfs.event.AbstractEntityEvent
getSender
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.entityfs.event.ChildEntitiesEvent
getChildEntities
 
Methods inherited from interface org.entityfs.event.EntityEvent
copy, getSender
 

Constructor Detail

ChildEntityRenamedEvent

public ChildEntityRenamedEvent(EntityView sender,
                               EntityView entity,
                               String oldName)
Method Detail

copy

public ChildEntityRenamedEvent copy(EntityView sender,
                                    Collection<? extends EntityView> entities)
Description copied from interface: ChildEntitiesEvent
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:
sender - The sender
entities - The child entities.

getOldName

public String getOldName()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object