public class ExpressionOrScriptMixin extends java.lang.Object implements ProfileNamesProvider
Provides the following options:
NO_PROFILES
Constructor and Description |
---|
ExpressionOrScriptMixin() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpression() |
java.lang.String |
getScript() |
boolean |
isValid()
User can't explicitly set both script and expression.
|
java.lang.String[] |
profilesToActivate() |
void |
setExpression(java.lang.String expression) |
void |
setScript(java.lang.String script) |
public java.lang.String getScript()
public java.lang.String getExpression()
public void setScript(java.lang.String script)
public void setExpression(java.lang.String expression)
@AssertTrue(message="the \'script\' and \'expression\' options are mutually exclusive") public boolean isValid()
public java.lang.String[] profilesToActivate()
profilesToActivate
in interface ProfileNamesProvider