Package de.xima.fc.workflow.parser.infix
Interface IValidationOptions
-
- All Known Implementing Classes:
ValidationOptions
public interface IValidationOptionsOptions that are passed toIInfixExpressionHandler.validate(CharSequence, IValidationOptions)to configure that method's behavior.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>getKnownVariables()LocalegetLocale()Function<String,Boolean>getVariableExistenceCheck()booleanisTreatExtraneousVariablesAsError()booleanisTreatNonExistingVariablesAsError()
-
-
-
Method Detail
-
getKnownVariables
Set<String> getKnownVariables()
- Returns:
- All variables that are definitely known to exist. For dynamic variables you may also use
getVariableExistenceCheck(). Note that this is overridden by the result ofgetVariableExistenceCheck()when that return a non-null value.
-
getLocale
Locale getLocale()
- Returns:
- Optional locale for localizing error messages.
Locale.ENGLISHis used when this returnsnull.
-
getVariableExistenceCheck
Function<String,Boolean> getVariableExistenceCheck()
- Returns:
- A test that, given the name of a variable, checks whether that variable exists. This can be used for
dynamic variables. When this returns
null, the result ofgetKnownVariables()is used instead. When notnull, the result of this check overrides the result ofgetKnownVariables(). Must returntruewhen the variable exists,falsewhen the variable does not exist, andnullwhen not certain whether it exists.
-
isTreatExtraneousVariablesAsError
boolean isTreatExtraneousVariablesAsError()
- Returns:
trueto create messages with severityFCMessage.ESeverity.ERRORwhen a variable is found that does not occur in the expression, orfalseto create messages withFCMessage.ESeverity.WARN.
-
isTreatNonExistingVariablesAsError
boolean isTreatNonExistingVariablesAsError()
- Returns:
trueto create messages with severityFCMessage.ESeverity.ERRORwhen a variable that occurs in the expression does not exist, orfalseto create messages withFCMessage.ESeverity.WARN.
-
-