|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.scopemvc.core.ModelAction
Actions on model objects can be invoked via ActionManager's API,
taking a ModelAction to describe the method to invoke. A ModelAction contains
a method name and a Class[] to describe the parameters in the method
signature.
ModelActions are probably not used by application builders who will more likely call a model object's methods directly.
ActionManager.doAction(java.lang.Object, org.scopemvc.core.ModelAction, java.lang.Object[]),
ActionManager.canDoAction(java.lang.Object, org.scopemvc.core.ModelAction)| Constructor Summary | |
ModelAction(java.lang.reflect.Method inMethod)
Constructor for the ModelAction object |
|
ModelAction(java.lang.String inMethodName)
Constructor for the ModelAction object |
|
ModelAction(java.lang.String inMethodName,
java.lang.Class inParameterClass)
Constructor for the ModelAction object |
|
ModelAction(java.lang.String inMethodName,
java.lang.Class[] inParameterClasses)
Constructor for the ModelAction object |
|
| Method Summary | |
java.lang.String |
getMethodName()
Gets the method name |
java.lang.Class[] |
getParameterClasses()
Gets the array of Class objects that represent the formal
parameter types, in declaration order, of the method. |
java.lang.String |
toString()
Returns a string representation of this object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ModelAction(java.lang.String inMethodName)
inMethodName - The name of the method on the modelpublic ModelAction(java.lang.reflect.Method inMethod)
inMethod - The method on the model
public ModelAction(java.lang.String inMethodName,
java.lang.Class inParameterClass)
inMethodName - The name of the method on the modelinParameterClass - The class of the unique method parameter
public ModelAction(java.lang.String inMethodName,
java.lang.Class[] inParameterClasses)
inMethodName - The name of the method on the modelinParameterClasses - The set of classes for the parameters of the
method| Method Detail |
public java.lang.String getMethodName()
public java.lang.Class[] getParameterClasses()
Class objects that represent the formal
parameter types, in declaration order, of the method.
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||