public interface Variables
| Modifier and Type | Method and Description |
|---|---|
void |
add(DynamicVariable variable)
Adds a dynamic variable.
|
boolean |
containsOverride(String name)
Whether the override exists of the given name.
|
String |
get(String name)
Returns the value of the specified variable.
|
String |
get(String name,
String defaultValue)
Returns the value of the specified variable.
|
Set<String> |
getBlockedVariableNames(Object blocker)
Get a set of variable names that are blocked by blocking object.
|
boolean |
getBoolean(String name)
Returns the boolean value of the specified variable.
|
boolean |
getBoolean(String name,
boolean defaultValue)
Returns the boolean value of the specified variable.
|
int |
getInt(String name)
Returns the integer value of the specified variable.
|
int |
getInt(String name,
int defaultValue)
Returns the integer value of the specified variable.
|
long |
getLong(String name)
Returns the long value of the specified variable.
|
long |
getLong(String name,
long defaultValue)
Returns the long value of the specified variable.
|
Overrides |
getOverrides()
Return all variables overrides.
|
Properties |
getProperties()
Exposes the variables as properties.
|
boolean |
isBlockedVariableName(String name)
Whether a variable is currently blocked against being refreshed.
|
void |
refresh()
Refreshes dynamic variables.
|
void |
registerBlockedVariableNames(Set<String> names,
Object blocker)
Register a set of variable names for blocking from further changes.
|
String |
replace(String value)
Replaces any variables in the supplied value.
|
void |
set(String name,
String value)
Sets a variable.
|
void |
setOverrides(Overrides overrides)
Exposes the variables as properties.
|
void |
unregisterBlockedVariableNames(Set<String> names,
Object blocker)
Unregister a set of variable names from blocking from further changes.
|
void set(String name, String value)
name - the variable namevalue - the variable value. May be nullString get(String name)
name - the variable namenullString get(String name, String defaultValue)
name - the variable namedefaultValue - the default value if the variable doesn't exist, or is nulldefaultValue if the variable doesn't exist or is nullboolean getBoolean(String name)
name - the variable namefalse if the variable doesn't exist or is not a booleanboolean getBoolean(String name, boolean defaultValue)
name - the variable namedefaultValue - the default value if the variable doesn't exist, or is nulldefaultValue if the variable doesn't exist or is not a booleanint getInt(String name)
name - the variable name-1 if the variable doesn't exist or is not an integerint getInt(String name, int defaultValue)
name - the variable namedefaultValue if the variable doesn't exist or is not an integerlong getLong(String name)
name - the variable name-1 if the variable doesn't exist or is not a longlong getLong(String name, long defaultValue)
name - the variable namedefaultValue if the variable doesn't exist or is not a longString replace(String value)
value - the value. May be nullvalue if there were no variables to replace, or
replacement failedvoid add(DynamicVariable variable)
variable - the variable to addvoid refresh()
throws InstallerException
InstallerException - if variables cannot be refreshedProperties getProperties()
void registerBlockedVariableNames(Set<String> names, Object blocker)
names - Variable namesblocker - Blocking objectSet<String> getBlockedVariableNames(Object blocker)
blocker - Blocking objectvoid unregisterBlockedVariableNames(Set<String> names, Object blocker)
names - Variable namesblocker - Blocking objectboolean isBlockedVariableName(String name)
name - the variable nameboolean containsOverride(String name)
void setOverrides(Overrides overrides)
Overrides getOverrides()
Copyright © 2001–2025. All rights reserved.