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
ContextManagerIF
null
.getValue
in interface ContextManagerIF
VariableNotSetException
- if value is due
to a not set variable not available.public Collection getValue(String name, Collection defaultValue)
ContextManagerIF
getValue
in interface ContextManagerIF
public void setValue(String name, Collection coll)
ContextManagerIF
setValue
in interface ContextManagerIF
public void setValueInScope(Object scope, String name, Collection coll)
ContextManagerIF
scope
.setValueInScope
in interface ContextManagerIF
public void setValue(String name, Object obj)
ContextManagerIF
setValue
in interface ContextManagerIF
public Collection getDefaultValue()
ContextManagerIF
getDefaultValue
in interface ContextManagerIF
public void setDefaultValue(Collection coll)
ContextManagerIF
setDefaultValue
in interface ContextManagerIF
public void setDefaultValue(Object obj)
ContextManagerIF
setDefaultValue
in interface ContextManagerIF
public Object getCurrentScope()
ContextManagerIF
getCurrentScope
in interface ContextManagerIF
public void pushScope()
ContextManagerIF
pushScope
in interface ContextManagerIF
public void popScope()
ContextManagerIF
popScope
in interface ContextManagerIF
public void clear()
ContextManagerIF
clear
in interface ContextManagerIF