CT
- the context typeRT
- the result type@PublicAPI public abstract class DynamicArgument<CT,RT> extends ServiceArgument<RT>
ServiceArgument
s implementing this interface
should support automatic evaluation of arguments before service call
based on context.Modifier | Constructor and Description |
---|---|
protected |
DynamicArgument() |
protected |
DynamicArgument(java.lang.String expression) |
Modifier and Type | Method and Description |
---|---|
abstract RT |
evaluate(CT context)
Evaluates the dynamic argument based on context
|
java.lang.String |
getExpression()
Returns the expression used for evaluations
|
java.lang.String |
getPlaceholderText()
Returns the value placeholder text.
|
boolean |
isValid()
Returns
true if service argument is valid |
void |
setExpression(java.lang.String expression)
Sets the expression
|
java.lang.String |
toString() |
createArgument, createArgument, createArgumentAs, createArgumentAs, createConstantFromString, getAlias, getName, getType, getValue, setAlias, setName, setType, setValue
protected DynamicArgument()
protected DynamicArgument(java.lang.String expression)
public void setExpression(java.lang.String expression)
expression
- used for evaluationpublic java.lang.String getExpression()
public abstract RT evaluate(CT context)
context
- the context of evalutionpublic boolean isValid()
ServiceArgument
true
if service argument is validisValid
in class ServiceArgument<RT>
true
if service argument is validpublic java.lang.String toString()
toString
in class ServiceArgument<RT>
public java.lang.String getPlaceholderText()
String
<Calculated>