net.ontopia.topicmaps.nav2.impl.framework
Class InteractionELSupport

java.lang.Object
  extended by net.ontopia.topicmaps.nav2.impl.framework.InteractionELSupport

public class InteractionELSupport
extends java.lang.Object

INTERNAL.


Constructor Summary
InteractionELSupport()
           
 
Method Summary
static java.util.Collection extendedGetValue(java.lang.String name, javax.servlet.jsp.PageContext pageContext)
          Looks up 'name' in the oks scope.
static boolean getBooleanValue(java.lang.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 java.lang.Object getValue(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionELSupport

public InteractionELSupport()
Method Detail

getValue

public static java.lang.Object getValue(java.lang.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 java.util.Collection extendedGetValue(java.lang.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(java.lang.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.


Copyright © 2000-2012 Ontopia.