org.yasl.xmlobjects
Interface MethodCall

All Superinterfaces:
ArgAccumulator, KeyedObject, KeyTypeAccessor
All Known Implementing Classes:
MethodCallImpl

public interface MethodCall
extends ArgAccumulator, KeyedObject, KeyTypeAccessor

Version:
1.0
Author:
Jeff Chapman

Method Summary
 Object callMethod(Object targetObject)
          Executes a method call on the targetObject using reflection with the method name and the accumulated arguments to identify the method.
 String getReturnedObjectClass()
          Returns the class type for the object returned from callmethod.
 
Methods inherited from interface org.yasl.xmlobjects.ArgAccumulator
addArgument
 
Methods inherited from interface org.yasl.xmlobjects.KeyedObject
getKey
 
Methods inherited from interface org.yasl.xmlobjects.KeyTypeAccessor
getKeyType
 

Method Detail

callMethod

public Object callMethod(Object targetObject)
                  throws MethodCallException
Executes a method call on the targetObject using reflection with the method name and the accumulated arguments to identify the method.

Parameters:
targetObject - Object
Returns:
Object
Throws:
MethodCallException

getReturnedObjectClass

public String getReturnedObjectClass()
Returns the class type for the object returned from callmethod.

If no object is returned, this method will return null.

Returns:
String