Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

oracle.adf.controller.metadata.model
Interface MethodCall

All Superinterfaces:
Activity, AdfcNode, IdHolder, NodeHolder, UIInfo

public interface MethodCall
extends Activity

Represents metadata for a method call activity. For example:

  <method-call>
    <method>#{pageFlowScope.taxService.calculateSalesTax}</method>
    <parameter>
      <class>java.lang.Double</class>
      <value>#{pageFlowScope.shoppingCart.totalPurchasePrice}</value>
    </parameter>
      <outcome>
      <to-string/>
    </outcome>
  </method-call>
 


Method Summary
 boolean addParameter(Parameter parameter)
           
 boolean convertToString()
          Indicates whether a value returned from a method should be converted to Java String.
 java.lang.String getDefaultOutcome()
          Retrieves a constant representing the default outcome of this method.
 java.lang.String getMethod()
          Retrieves a method EL expression representing this method call.
 java.util.List<Parameter> getParameters()
          Retrieves the List of input parameters to this method.
 java.lang.String getReturnValue()
          The EL expression used to store method's return value.
 boolean removeParameter(Parameter parameter)
           
 boolean setConvertToString(boolean convertToString)
          If convertToString is true, and a method call has a fixed outcome defined, the fixed outcome will be removed and to-string element will be added.
 boolean setDefaultOutcome(java.lang.String defaultOutcome)
          Adds a literal outcome that will be returned when this method call activity executes.
 boolean setMethod(java.lang.String method)
           
 boolean setReturnValue(java.lang.String returnValue)
           
 
Methods inherited from interface oracle.adf.controller.metadata.model.Activity
getId, getMetadataObject, getType
 
Methods inherited from interface oracle.adf.controller.metadata.model.UIInfo
getDescription, getDisplayName, getLargeIcon, getSmallIcon, getUIInfo, setDescription, setDisplayName, setLargeIcon, setSmallIcon
 
Methods inherited from interface oracle.adf.controller.metadata.model.AdfcNode
getParsingContext, validate
 
Methods inherited from interface oracle.adf.controller.metadata.model.IdHolder
getIdAttribute, setIdAttribute
 
Methods inherited from interface oracle.adf.controller.metadata.model.NodeHolder
getNode
 

Method Detail

getMethod

java.lang.String getMethod()
Retrieves a method EL expression representing this method call. For example,
#{pageFlowScope.taxService.calculateSalesTax

Returns:
String representation of an EL expression

getParameters

java.util.List<Parameter> getParameters()
Retrieves the List of input parameters to this method.

Returns:
input parameter list

convertToString

boolean convertToString()
Indicates whether a value returned from a method should be converted to Java String.

Returns:
true, if #toString() should be called on the result when setting the outcome of this method call activity.

getDefaultOutcome

java.lang.String getDefaultOutcome()
Retrieves a constant representing the default outcome of this method. For example, "success" or "failure".

Returns:
String logical outcome of this method call activity, or null, if no default outcome specified.

getReturnValue

java.lang.String getReturnValue()
The EL expression used to store method's return value.

Returns:
String representation of an EL expression, or null.

setConvertToString

boolean setConvertToString(boolean convertToString)
If convertToString is true, and a method call has a fixed outcome defined, the fixed outcome will be removed and to-string element will be added. If convertToString is false, this is a noop. Use setDefaultOutcome(java.lang.String) instead.

Parameters:
convertToString -
Returns:
true, if to-string was successfully added. False otherwise.

setDefaultOutcome

boolean setDefaultOutcome(java.lang.String defaultOutcome)
Adds a literal outcome that will be returned when this method call activity executes. If a to-string outcome is specified, it will be removed. If defaultOutcome is a null or empty String, no action will be taken.

Parameters:
defaultOutcome -
Returns:
true, if fixed outcome was successfully added, false otherwise.

setMethod

boolean setMethod(java.lang.String method)

setReturnValue

boolean setReturnValue(java.lang.String returnValue)

addParameter

boolean addParameter(Parameter parameter)

removeParameter

boolean removeParameter(Parameter parameter)

Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

Copyright © 1997, 2011, Oracle. All rights reserved.