|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.marvin.services.ServiceArgument<RT>
chemaxon.marvin.services.DynamicArgument<CT,RT>
CT
- the context typeRT
- the result typepublic abstract class DynamicArgument<CT,RT>
ServiceArgument
s implementing this interface
should support automatic evaluation of arguments before service call
based on context.
NOTE: subclasses MUST HAVE default constructor to use from Marvin Sketch
Field Summary |
---|
Fields inherited from class chemaxon.marvin.services.ServiceArgument |
---|
alias, constant, name, type, value |
Constructor Summary | |
---|---|
protected |
DynamicArgument()
|
protected |
DynamicArgument(java.lang.String expression)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class chemaxon.marvin.services.ServiceArgument |
---|
createArgument, createArgument, createArgumentAs, createArgumentAs, createConstantFromString, getAlias, getName, getType, getValue, setAlias, setName, setType, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DynamicArgument()
protected DynamicArgument(java.lang.String expression)
Method Detail |
---|
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 evalution
public boolean isValid()
ServiceArgument
true
if service argument is valid
isValid
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>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |