org.nakedobjects.object.reflect
Class Action

java.lang.Object
  extended byorg.nakedobjects.object.reflect.Member
      extended byorg.nakedobjects.object.reflect.Action

public class Action
extends Member


Nested Class Summary
 
Nested classes inherited from class org.nakedobjects.object.reflect.Member
Member.DefaultAbout
 
Field Summary
 
Fields inherited from class org.nakedobjects.object.reflect.Member
DEFAULT
 
Constructor Summary
Action(java.lang.String name, java.lang.reflect.Method method, java.lang.reflect.Method about)
           
 
Method Summary
 NakedObject execute(NakedObject object)
           
 NakedObject execute(NakedObject object, NakedObject parameter1)
           
 NakedObject execute(NakedObject object, NakedObject[] parameters)
           
 About getAbout(NakedObject object)
           
 About getAbout(NakedObject object, NakedObject parameter1)
           
 About getAbout(NakedObject object, NakedObject[] parameters)
           
 java.lang.String getLabel(NakedObject object)
          Return a label string that is specified in the About, if there is one, or is derived from method name, if there is no About or its name is set to null.
 boolean hasReturnValue()
          Returns true if the represented method returns something, else returns false.
 java.lang.Class[] parameterTypes()
           
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.object.reflect.Member
getAboutMethod, getMemberMethod, getName, getObjectStore, hasAbout, init, isDistributed, isProxied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Action

public Action(java.lang.String name,
              java.lang.reflect.Method method,
              java.lang.reflect.Method about)
Method Detail

getAbout

public About getAbout(NakedObject object)

getAbout

public About getAbout(NakedObject object,
                      NakedObject parameter1)

getAbout

public About getAbout(NakedObject object,
                      NakedObject[] parameters)

getLabel

public java.lang.String getLabel(NakedObject object)
Return a label string that is specified in the About, if there is one, or is derived from method name, if there is no About or its name is set to null.


execute

public NakedObject execute(NakedObject object)

execute

public NakedObject execute(NakedObject object,
                           NakedObject parameter1)

execute

public NakedObject execute(NakedObject object,
                           NakedObject[] parameters)

hasReturnValue

public boolean hasReturnValue()
Returns true if the represented method returns something, else returns false.


parameterTypes

public java.lang.Class[] parameterTypes()

toString

public java.lang.String toString()
Overrides:
toString in class Member