public class ContextManager extends Object implements ContextManagerIF
| Constructor and Description |
|---|
ContextManager(javax.servlet.jsp.PageContext pageContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
INTERNAL: Clear all variables hold on stack.
|
Object |
getCurrentScope()
INTERNAL: Gets the current lexical scope.
|
Collection |
getDefaultValue()
INTERNAL: Gets the default value in the current scope.
|
Collection |
getValue(String name)
INTERNAL: Gets value for specified variable name.
|
Collection |
getValue(String name,
Collection defaultValue)
INTERNAL: Gets value for specified variable name.
|
void |
popScope()
INTERNAL: Removes the current set of variables at the top of this stack.
|
void |
pushScope()
INTERNAL: Pushes a new set of variables (name/collection-pairs)
onto the top of this stack.
|
void |
setDefaultValue(Collection coll)
INTERNAL: Sets the default value in the current scope.
|
void |
setDefaultValue(Object obj)
INTERNAL: Sets the default value in the current scope.
|
void |
setValue(String name,
Collection coll)
INTERNAL: Add Collection with specified name to registry.
|
void |
setValue(String name,
Object obj)
INTERNAL: Add Collection with specified name to registry.
|
void |
setValueInScope(Object scope,
String name,
Collection coll)
INTERNAL: Add Collection with specified name to to the registry
identified by
scope. |
public Collection getValue(String name) throws VariableNotSetException
ContextManagerIFnull.getValue in interface ContextManagerIFVariableNotSetException - if value is due
to a not set variable not available.public Collection getValue(String name, Collection defaultValue)
ContextManagerIFgetValue in interface ContextManagerIFpublic void setValue(String name, Collection coll)
ContextManagerIFsetValue in interface ContextManagerIFpublic void setValueInScope(Object scope, String name, Collection coll)
ContextManagerIFscope.setValueInScope in interface ContextManagerIFpublic void setValue(String name, Object obj)
ContextManagerIFsetValue in interface ContextManagerIFpublic Collection getDefaultValue()
ContextManagerIFgetDefaultValue in interface ContextManagerIFpublic void setDefaultValue(Collection coll)
ContextManagerIFsetDefaultValue in interface ContextManagerIFpublic void setDefaultValue(Object obj)
ContextManagerIFsetDefaultValue in interface ContextManagerIFpublic Object getCurrentScope()
ContextManagerIFgetCurrentScope in interface ContextManagerIFpublic void pushScope()
ContextManagerIFpushScope in interface ContextManagerIFpublic void popScope()
ContextManagerIFpopScope in interface ContextManagerIFpublic void clear()
ContextManagerIFclear in interface ContextManagerIF