Class InteractionELSupport
java.lang.Object
net.ontopia.topicmaps.nav2.impl.framework.InteractionELSupport
INTERNAL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionextendedGetValue(String name, javax.servlet.jsp.PageContext pageContext) Looks up 'name' in the oks scope.static booleangetBooleanValue(String name, boolean defaultValue, javax.servlet.jsp.PageContext pageContext) Takes a name value of "true", "false", or a variable name and returns a boolean representing the value given.static ObjectBreaks name up into tokens separated by '.' characters, looks up the first token (in other JSTL scopes) to get a variable.
-
Constructor Details
-
InteractionELSupport
public InteractionELSupport()
-
-
Method Details
-
getValue
Breaks name up into tokens separated by '.' characters, looks up the first token (in other JSTL scopes) to get a variable. Uses the next token (if there) to get a bean property from the variable. Uses additional tokens to lookup bean properties of bean properties. If the variable or any of those bean properties is a Map then gets the object with the given token as key.- Parameters:
name- The name to lookup.pageContext- Used to look up attributes.
-
extendedGetValue
Looks up 'name' in the oks scope. If not found, looks up tokenized 'name' in other scopes using the local getValue method (see details of getValue(). -
getBooleanValue
public static boolean getBooleanValue(String name, boolean defaultValue, javax.servlet.jsp.PageContext pageContext) Takes a name value of "true", "false", or a variable name and returns a boolean representing the value given. If the name value is a variable name the method will return true if the variable value is not empty.- Parameters:
name- The value to be evaluated.pageContext- The current page execution context.- Returns:
- a boolean indicating whether or not the value is true or false.
-