public static class ModelValidatorContext.SpELVariables extends Object
Constructor and Description |
---|
SpELVariables(Map<String,Serializable> variables,
Map<String,String> models,
Set<String> groupsNames) |
Modifier and Type | Method and Description |
---|---|
static boolean |
f(Object expression)
Takes any expression and return false
Registered as a SPEL function
|
Map<String,Boolean> |
getHiddenGroups() |
Map<String,Boolean> |
getHiddenVariables() |
Map<String,String> |
getModels() |
Object |
getTemp() |
Map<String,Object> |
getTempMap() |
Boolean |
getValid() |
Map<String,Serializable> |
getVariables() |
boolean |
hideGroup(String groupName)
Hide the given group of variables.
|
boolean |
hideVar(String variableName)
Hide the given variable.
|
static String |
s(Object expression)
Takes any expression and return an empty string
This allows to sequence actions with the + operator
Registered as a SPEL function
|
void |
setModels(Map<String,String> models) |
void |
setTemp(Object temp) |
void |
setTempMap(Map<String,Object> tempMap) |
void |
setValid(Boolean valid) |
void |
setVariables(Map<String,Serializable> variables) |
boolean |
showGroup(String groupName)
Show the given group of variables.
|
boolean |
showVar(String variableName)
Show the given variable.
|
static boolean |
t(Object expression)
Takes any expression and return true
Registered as a SPEL function
|
public static boolean t(Object expression)
public static boolean f(Object expression)
public static String s(Object expression)
public Map<String,Serializable> getVariables()
public void setVariables(Map<String,Serializable> variables)
public Object getTemp()
public void setTemp(Object temp)
public Boolean getValid()
public void setValid(Boolean valid)
public boolean hideVar(String variableName)
variableName
- variable to hideExample: hideVar('var1') && showVar('var2')
public boolean showVar(String variableName)
variableName
- variable to showExample: showVar('var1') && hideVar('var2')
public boolean hideGroup(String groupName)
groupName
- name of the variable groupExample: hideGroup('group1') && showGroup('group2')
public boolean showGroup(String groupName)
groupName
- name of the variable groupExample: hideGroup('group1') && showGroup('group2')