org.gui4j.core
Interface Gui4jCall

All Superinterfaces:
Gui4jGetValue
All Known Implementing Classes:
Gui4jInternalActionCall

public interface Gui4jCall
extends Gui4jGetValue

Represents the interface for all reflection call. Method calls, field accesses, integer constants, and also string constants are instances of this interface. Parsing of reflection calls is done by


Method Summary
 java.lang.String getConfigurationName()
          Method getConfigurationSource.
 Gui4jCall[] getDependantProperties()
          Method getDependantProperties.
 java.lang.Class getResultClass()
          Method getResultClass.
 java.util.Set getUsedParams()
          Returns actually used parameter names.
 java.lang.Class getValueClass()
          Method getValueClass.
 java.lang.Class getValueClass(java.lang.String paramName)
          Method getValueClass.
 java.lang.Object getValueNoParams(Gui4jCallBase baseInstance, java.lang.Object defaultValue)
          Method getValueNoParams.
 java.lang.Object getValueUseDefaultParam(Gui4jCallBase baseInstance, java.lang.Object defaultParamValue, java.lang.Object defaultValue)
          Method getValueUseDefaultParam.
 boolean hasTriggerEvents()
          Method hasTriggerEvents.
 
Methods inherited from interface org.gui4j.Gui4jGetValue
getValue, getValueNoErrorChecking
 

Method Detail

getDependantProperties

public Gui4jCall[] getDependantProperties()
Method getDependantProperties. Returns the list of dependant events.

Returns:
Gui4jCall[]

hasTriggerEvents

public boolean hasTriggerEvents()
Method hasTriggerEvents. Returns true if the list of dependant events is non-empty.

Returns:
boolean

getResultClass

public java.lang.Class getResultClass()
Method getResultClass.

Returns:
Class the return-type of the reflection call

getValueClass

public java.lang.Class getValueClass()
Method getValueClass.

Returns:
Class the type of the default parameter (name "")

getValueClass

public java.lang.Class getValueClass(java.lang.String paramName)
Method getValueClass.

Parameters:
paramName -
Returns:
the type of the given parameter

getUsedParams

public java.util.Set getUsedParams()
Returns actually used parameter names.

Returns:
a set containing the names of all actually used parameters in this call. The returned set is empty (not null) if no parameters were used.

getValueNoParams

public java.lang.Object getValueNoParams(Gui4jCallBase baseInstance,
                                         java.lang.Object defaultValue)
Method getValueNoParams. Evaluates the reflection call and uses no parameter instantiation.

Parameters:
baseInstance -
defaultValue - the value if the call fails
Returns:
Object

getValueUseDefaultParam

public java.lang.Object getValueUseDefaultParam(Gui4jCallBase baseInstance,
                                                java.lang.Object defaultParamValue,
                                                java.lang.Object defaultValue)
Method getValueUseDefaultParam. Evaluates the reflection call with given value for the default parameter (name "").

Parameters:
baseInstance -
defaultParamValue -
defaultValue - the value if the call fails
Returns:
Object

getConfigurationName

public java.lang.String getConfigurationName()
Method getConfigurationSource.

Returns:
String. The name of the XML-file where the reflection call was defined. This is usually used only for error reporting.


Copyright © 2002-2005 beck et al. projects GmbH. All Rights Reserved.