Class ContextManager
java.lang.Object
net.ontopia.topicmaps.nav2.impl.basic.ContextManager
- All Implemented Interfaces:
ContextManagerIF
INTERNAL: Default Implementation of ContextManagerIF.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()INTERNAL: Clear all variables hold on stack.INTERNAL: Gets the current lexical scope.INTERNAL: Gets the default value in the current scope.INTERNAL: Gets value for specified variable name.getValue(String name, Collection defaultValue) INTERNAL: Gets value for specified variable name.voidpopScope()INTERNAL: Removes the current set of variables at the top of this stack.voidINTERNAL: Pushes a new set of variables (name/collection-pairs) onto the top of this stack.voidsetDefaultValue(Object obj) INTERNAL: Sets the default value in the current scope.voidsetDefaultValue(Collection coll) INTERNAL: Sets the default value in the current scope.voidINTERNAL: Add Collection with specified name to registry.voidsetValue(String name, Collection coll) INTERNAL: Add Collection with specified name to registry.voidsetValueInScope(Object scope, String name, Collection coll) INTERNAL: Add Collection with specified name to to the registry identified byscope.
-
Constructor Details
-
ContextManager
public ContextManager(javax.servlet.jsp.PageContext pageContext)
-
-
Method Details
-
getValue
Description copied from interface:ContextManagerIFINTERNAL: Gets value for specified variable name. First search in current local scope, if there is no such named variable, go up the lexical scope hierarchy and try to retrieve there this variable. If not found at all returnnull.- Specified by:
getValuein interfaceContextManagerIF- Throws:
VariableNotSetException- if value is due to a not set variable not available.
-
getValue
Description copied from interface:ContextManagerIFINTERNAL: Gets value for specified variable name. It is the same as getValue(String), except that defaultValue is returned if the variable does not exist.- Specified by:
getValuein interfaceContextManagerIF
-
setValue
Description copied from interface:ContextManagerIFINTERNAL: Add Collection with specified name to registry.- Specified by:
setValuein interfaceContextManagerIF
-
setValueInScope
Description copied from interface:ContextManagerIFINTERNAL: Add Collection with specified name to to the registry identified byscope.- Specified by:
setValueInScopein interfaceContextManagerIF
-
setValue
Description copied from interface:ContextManagerIFINTERNAL: Add Collection with specified name to registry. The object get internally transformed to a Collection.- Specified by:
setValuein interfaceContextManagerIF
-
getDefaultValue
Description copied from interface:ContextManagerIFINTERNAL: Gets the default value in the current scope.- Specified by:
getDefaultValuein interfaceContextManagerIF
-
setDefaultValue
Description copied from interface:ContextManagerIFINTERNAL: Sets the default value in the current scope.- Specified by:
setDefaultValuein interfaceContextManagerIF
-
setDefaultValue
Description copied from interface:ContextManagerIFINTERNAL: Sets the default value in the current scope. The object get internally transformed to a Collection.- Specified by:
setDefaultValuein interfaceContextManagerIF
-
getCurrentScope
Description copied from interface:ContextManagerIFINTERNAL: Gets the current lexical scope. This object is an opaque identifier that is only to be used by setValueInScope for identifying the scope in which you want to set a value. Clients should not make any assumptions about this object, and should not try to modify it or work directly with it.- Specified by:
getCurrentScopein interfaceContextManagerIF
-
pushScope
public void pushScope()Description copied from interface:ContextManagerIFINTERNAL: Pushes a new set of variables (name/collection-pairs) onto the top of this stack.- Specified by:
pushScopein interfaceContextManagerIF
-
popScope
public void popScope()Description copied from interface:ContextManagerIFINTERNAL: Removes the current set of variables at the top of this stack.- Specified by:
popScopein interfaceContextManagerIF
-
clear
public void clear()Description copied from interface:ContextManagerIFINTERNAL: Clear all variables hold on stack.- Specified by:
clearin interfaceContextManagerIF
-