public class ExpressionOrScriptMixin extends ScriptMixin implements ProfileNamesProvider
Provides the following options:
NO_PROFILES
Constructor and Description |
---|
ExpressionOrScriptMixin() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpression() |
boolean |
isValid()
User can't explicitly set both script and expression.
|
boolean |
noScriptOptionsWithExpression() |
java.lang.String[] |
profilesToActivate() |
void |
setExpression(java.lang.String expression) |
getPropertiesLocation, getRefreshDelay, getScript, getVariables, setPropertiesLocation, setRefreshDelay, setScript, setVariables
public java.lang.String getExpression()
public void setExpression(java.lang.String expression)
@AssertTrue(message="the \'script\' and \'expression\' options are mutually exclusive") public boolean isValid()
isValid
in class ScriptMixin
@AssertTrue(message="\'propertiesLocation\' and \'variables\' only apply to script") public boolean noScriptOptionsWithExpression()
public java.lang.String[] profilesToActivate()
profilesToActivate
in interface ProfileNamesProvider