Class InteractionELSupport
- java.lang.Object
-
- net.ontopia.topicmaps.nav2.impl.framework.InteractionELSupport
-
public class InteractionELSupport extends Object
INTERNAL.
-
-
Constructor Summary
Constructors Constructor Description InteractionELSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection
extendedGetValue(String name, javax.servlet.jsp.PageContext pageContext)
Looks up 'name' in the oks scope.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.static Object
getValue(String name, javax.servlet.jsp.PageContext pageContext)
Breaks name up into tokens separated by '.' characters, looks up the first token (in other JSTL scopes) to get a variable.
-
-
-
Method Detail
-
getValue
public static Object getValue(String name, javax.servlet.jsp.PageContext pageContext)
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
public static Collection extendedGetValue(String name, javax.servlet.jsp.PageContext pageContext)
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.
-
-