Package de.xima.fc.gui.util
Interface ComponentHelper.VariableScope
-
- All Superinterfaces:
AutoCloseable
- Enclosing class:
- ComponentHelper
public static interface ComponentHelper.VariableScope extends AutoCloseable
Represents a scoped EL variable. When closed, the original value of the variable is restored.- Since:
- 8.5.3
- See Also:
ComponentHelper.addScopedVariable(FacesContext, String, Object)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Restores the previous mapping of the variable.ObjectgetPreviousValue()Gets the previous value of the variable before it was overridden by this scope.booleanisHadPreviousValue()Gets whether the variable existed before it was overridden by this scope.
-
-
-
Method Detail
-
close
void close()
Restores the previous mapping of the variable.- Specified by:
closein interfaceAutoCloseable
-
getPreviousValue
Object getPreviousValue()
Gets the previous value of the variable before it was overridden by this scope. If the variable did not exist before, this method returnsnull.- Returns:
- The previous value of the variable, or
nullif the variable did not exist before.
-
isHadPreviousValue
boolean isHadPreviousValue()
Gets whether the variable existed before it was overridden by this scope.- Returns:
trueif the variable existed before, orfalseif the variable did not exist before.
-
-