org.nakedobjects.applib.events
Class CollectionMethodEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.nakedobjects.applib.events.InteractionEvent
          extended by org.nakedobjects.applib.events.AccessEvent
              extended by org.nakedobjects.applib.events.CollectionMethodEvent
All Implemented Interfaces:
java.io.Serializable

public class CollectionMethodEvent
extends AccessEvent

Represents an interaction with a collection object itself.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CollectionMethodEvent(java.lang.Object source, Identifier collectionIdentifier, java.lang.Object domainObject, java.lang.String methodName, java.lang.Object[] args, java.lang.Object returnValue)
           
 
Method Summary
 java.lang.Object[] getArgs()
          The arguments with which the collection's method was invoked.
 java.lang.Object getDomainObject()
          The owner of the collection (an instance of Customer/tt> or Order, say).
 java.lang.String getMethodName()
          The name of the method invoked on this collection, for example isEmpty.
 java.lang.Object getReturnValue()
          The return value from the method invocation.
 java.lang.Object getSource()
          The collection object (an instance of a List or a Set etc) that is the originator of this event.
 
Methods inherited from class org.nakedobjects.applib.events.InteractionEvent
advised, getAdvisorClass, getClassName, getClassNaturalName, getIdentifier, getMemberName, getMemberNaturalName, getMemberParameterNames, getMemberParameterNaturalNames, getReason, isVeto
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionMethodEvent

public CollectionMethodEvent(java.lang.Object source,
                             Identifier collectionIdentifier,
                             java.lang.Object domainObject,
                             java.lang.String methodName,
                             java.lang.Object[] args,
                             java.lang.Object returnValue)
Method Detail

getSource

public java.lang.Object getSource()
The collection object (an instance of a List or a Set etc) that is the originator of this event.

The owning domain object is available using getDomainObject().

Overrides:
getSource in class InteractionEvent
See Also:
getDomainObject()

getDomainObject

public java.lang.Object getDomainObject()
The owner of the collection (an instance of Customer/tt> or Order, say).

See Also:
getSource()

getMethodName

public java.lang.String getMethodName()
The name of the method invoked on this collection, for example isEmpty.

Returns:

getArgs

public java.lang.Object[] getArgs()
The arguments with which the collection's method was invoked.


getReturnValue

public java.lang.Object getReturnValue()
The return value from the method invocation.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.