public class VariableErrorHandlingDescriptor
extends java.lang.Object
replaceVariables(...)
methods in AbstractBean
.
Each variable type (installer variable, I18N message and compiler variable has its own error handling.
Note: compiler variables in the project are replaced at compile time. Compiler variables in external files, such as a custom localization file are not replaced at a compile time.
Modifier and Type | Field and Description |
---|---|
static VariableErrorHandlingDescriptor |
ALWAYS_ERROR_MESSAGE
Always replace undefined variables with an error message.
|
static VariableErrorHandlingDescriptor |
ALWAYS_EXCEPTION
Always throw exceptions for undefined variables.
|
static VariableErrorHandlingDescriptor |
ALWAYS_IGNORE
Ignore all undefined variables.
|
static VariableErrorHandlingDescriptor |
DEFAULT
The default error handling.
|
Constructor and Description |
---|
VariableErrorHandlingDescriptor(VariableErrorHandling installerVariables,
VariableErrorHandling i18nKeys,
VariableErrorHandling compilerVariables)
Construct a custom variable error handling
|
Modifier and Type | Method and Description |
---|---|
VariableErrorHandling |
getCompilerVariables()
Returns the error handling for compiler variables.
|
VariableErrorHandling |
getI18nKeys()
Returns the error handling for localization keys.
|
VariableErrorHandling |
getInstallerVariables()
Returns the error handling for installer variables.
|
public static final VariableErrorHandlingDescriptor DEFAULT
public static final VariableErrorHandlingDescriptor ALWAYS_IGNORE
public static final VariableErrorHandlingDescriptor ALWAYS_ERROR_MESSAGE
public static final VariableErrorHandlingDescriptor ALWAYS_EXCEPTION
public VariableErrorHandlingDescriptor(VariableErrorHandling installerVariables, VariableErrorHandling i18nKeys, VariableErrorHandling compilerVariables)
installerVariables
- error handling for installer variablesi18nKeys
- error handling for localization keyscompilerVariables
- error handling for compiler variablespublic VariableErrorHandling getInstallerVariables()
public VariableErrorHandling getI18nKeys()
public VariableErrorHandling getCompilerVariables()