A - the actual parameter type.public interface ParameterBinding<A>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
RETURN_VALUE
Boolean constant denoting that a parameter binding is in fact a return
value.
|
| Modifier and Type | Method and Description |
|---|---|
Parameter<A> |
getActualParameter()
Get the actual parameter of this parameter binding.
|
<F> A |
getActualParameterValue(F formalParameterValue)
Get the actual parameter value of this parameter binding.
|
Converter<A,?> |
getConverter()
Return the converter to use with this remote service parameter.
|
String |
getFormalParameterName()
Get the declared name of the formal parameter
|
<F> F |
getFormalParameterValue()
Get the formal parameter value of this parameter binding.
|
boolean |
hasConverter()
Test if this remote service parameter has a registered converter.
|
boolean |
isReturnValue()
Test if this parameter binding represents the return value.
|
A |
obtainParameterValue()
Obtain the actual parameter value.
|
void |
setActualParameterValue(A actualParameterValue)
Set the actual parameter value.
|
<F> void |
setFormalParameterValue(F formalParameterValue)
Set the formal parameter value.
|
static final boolean RETURN_VALUE
boolean hasConverter()
true if the remote service parameter has a converterConverter<A,?> getConverter()
null if no such converter exists.Parameter<A> getActualParameter()
String getFormalParameterName()
boolean isReturnValue()
true if this binding is the return value.<F> F getFormalParameterValue()
throws ConvertException
Note that unless the the parameter has been obtained, or the actual
parameter is a constant, the parameter returned value will most likely be
null (depending on the converter).
F - the formal parameter type.ConvertException - exceptions thrown by converter are re-thrown.<F> A getActualParameterValue(F formalParameterValue) throws ConvertException
F - the formal parameter typeformalParameterValue - the formal parameter valueConvertException - exceptions thrown by converter are re-thrown.void setActualParameterValue(A actualParameterValue)
actualParameterValue - the value of the actual parameter.<F> void setFormalParameterValue(F formalParameterValue)
throws ConvertException
F - the formal parameter type.formalParameterValue - the formal parameter value.ConvertException - exceptions thrown by converter are re-thrown.A obtainParameterValue()
Copyright © 2006–2020 Esito AS. All rights reserved.