Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.taglibs.rdc.dm
Class DMUtils  view DMUtils download DMUtils.java

java.lang.Object
  extended byorg.apache.taglibs.rdc.dm.DMUtils

public class DMUtils
extends java.lang.Object

Utility methods for the dm package


Field Summary
private static java.lang.String ERR_BAD_EXPR
           
private static java.lang.String ERR_NO_SUCH_MODEL
           
private static java.lang.String ERR_NULL_EXPR
           
private static java.lang.String FILLER
           
private static java.lang.String FILLER_NO_END_EXPR
           
private static int ID_GROUP
           
private static java.lang.String ID_TOK
           
private static org.apache.commons.logging.Log log
           
private static java.lang.String NESTED_DATAMODEL_SEPARATOR
           
private static java.util.regex.Pattern PATTERN_ID
           
private static java.util.regex.Pattern PATTERN_OPEN_EXPR
           
private static java.lang.String START_EXPR
           
 
Constructor Summary
DMUtils()
           
 
Method Summary
private static void addToCache(java.util.LinkedHashMap cache, java.lang.String key, java.lang.Object value, java.lang.String var)
          LRU Cache implementation using LinkedHashMap
(package private) static int invokeDormantChild(java.util.Map children, java.util.List activeChildren, java.lang.String id)
          Activate child so it takes over the dialog from the next turn
static boolean isChildDone(org.apache.taglibs.rdc.core.BaseModel model)
          Return true if the given component or container is done.
(package private) static java.lang.Object proprietaryEval(org.apache.taglibs.rdc.core.GroupTag groupTag, org.apache.taglibs.rdc.core.GroupModel groupModel, java.lang.String expr, java.lang.Class retClass, java.util.LinkedHashMap lruCache, java.util.List tempVars)
          Two pass evaluation: 1) Substitute value-of RDCs 2) Evaluate using the EL evaluator
private static java.lang.Object valueOfELExpr(javax.servlet.jsp.JspContext ctx, java.lang.String expr_, java.lang.Class retType)
          Obtain the value of the given JSP 2.0 EL expression in the group tag's PageContext.
private static java.lang.Object valueOfIDExpr(org.apache.taglibs.rdc.core.GroupModel groupModel, java.lang.String id)
          Obtain the value of the given ID with respect to the given GroupModel.
private static java.lang.String wrapAsNeeded(java.lang.String startStr, java.lang.String pageVar, java.lang.String endStr)
          Make sure the temporary page context variable gets evaluated in an EL expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NESTED_DATAMODEL_SEPARATOR

private static final java.lang.String NESTED_DATAMODEL_SEPARATOR
See Also:
Constant Field Values

FILLER

private static final java.lang.String FILLER
See Also:
Constant Field Values

ID_TOK

private static final java.lang.String ID_TOK
See Also:
Constant Field Values

START_EXPR

private static final java.lang.String START_EXPR
See Also:
Constant Field Values

FILLER_NO_END_EXPR

private static final java.lang.String FILLER_NO_END_EXPR
See Also:
Constant Field Values

PATTERN_ID

private static final java.util.regex.Pattern PATTERN_ID

ID_GROUP

private static final int ID_GROUP
See Also:
Constant Field Values

PATTERN_OPEN_EXPR

private static final java.util.regex.Pattern PATTERN_OPEN_EXPR

ERR_NO_SUCH_MODEL

private static final java.lang.String ERR_NO_SUCH_MODEL
See Also:
Constant Field Values

ERR_NULL_EXPR

private static final java.lang.String ERR_NULL_EXPR
See Also:
Constant Field Values

ERR_BAD_EXPR

private static final java.lang.String ERR_BAD_EXPR
See Also:
Constant Field Values

log

private static org.apache.commons.logging.Log log
Constructor Detail

DMUtils

public DMUtils()
Method Detail

isChildDone

public static boolean isChildDone(org.apache.taglibs.rdc.core.BaseModel model)
Return true if the given component or container is done.


invokeDormantChild

static int invokeDormantChild(java.util.Map children,
                              java.util.List activeChildren,
                              java.lang.String id)
Activate child so it takes over the dialog from the next turn


proprietaryEval

static java.lang.Object proprietaryEval(org.apache.taglibs.rdc.core.GroupTag groupTag,
                                        org.apache.taglibs.rdc.core.GroupModel groupModel,
                                        java.lang.String expr,
                                        java.lang.Class retClass,
                                        java.util.LinkedHashMap lruCache,
                                        java.util.List tempVars)
Two pass evaluation: 1) Substitute value-of RDCs 2) Evaluate using the EL evaluator


addToCache

private static void addToCache(java.util.LinkedHashMap cache,
                               java.lang.String key,
                               java.lang.Object value,
                               java.lang.String var)
LRU Cache implementation using LinkedHashMap


wrapAsNeeded

private static java.lang.String wrapAsNeeded(java.lang.String startStr,
                                             java.lang.String pageVar,
                                             java.lang.String endStr)
Make sure the temporary page context variable gets evaluated in an EL expression


valueOfIDExpr

private static java.lang.Object valueOfIDExpr(org.apache.taglibs.rdc.core.GroupModel groupModel,
                                              java.lang.String id)
Obtain the value of the given ID with respect to the given GroupModel.


valueOfELExpr

private static java.lang.Object valueOfELExpr(javax.servlet.jsp.JspContext ctx,
                                              java.lang.String expr_,
                                              java.lang.Class retType)
Obtain the value of the given JSP 2.0 EL expression in the group tag's PageContext.