org.apache.commons.latka.jelly
Class JellyUtils

java.lang.Object
  extended by org.apache.commons.latka.jelly.JellyUtils

public class JellyUtils
extends Object

Author:
Morgan Delagrange

Field Summary
protected static JellyUtils _utils
           
protected static String EVENT_INFO_VAR
           
protected static String EVENT_LISTENER_VAR
           
 
Constructor Summary
JellyUtils()
          Creates a new instance of SuiteTag
 
Method Summary
 Request findParentRequest(org.apache.commons.jelly.Tag tag)
          Given a tag, find a parent RequestTag and return its Request object.
static JellyUtils getInstance()
           
 LatkaEventInfo getLatkaEventInfo(org.apache.commons.jelly.JellyContext context)
          Return the LatkaEventInfo for the context, or null if none has been set
 LatkaEventListener getLatkaEventListener(org.apache.commons.jelly.JellyContext context)
          Return the LatkaEventListener for the context, or null if none has been set
 void removeLatkaEventInfo(org.apache.commons.jelly.JellyContext context)
          Remove a LatkaEventInfo object.
 void setLatkaEventInfo(org.apache.commons.jelly.JellyContext context, LatkaEventInfo info)
          Provide a LatkaEventInfo object.
 void setLatkaEventListener(org.apache.commons.jelly.JellyContext context, LatkaEventListener listener)
          Provide a LatkaEventListener object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_INFO_VAR

protected static final String EVENT_INFO_VAR
See Also:
Constant Field Values

EVENT_LISTENER_VAR

protected static final String EVENT_LISTENER_VAR
See Also:
Constant Field Values

_utils

protected static JellyUtils _utils
Constructor Detail

JellyUtils

public JellyUtils()
Creates a new instance of SuiteTag

Method Detail

getInstance

public static JellyUtils getInstance()

getLatkaEventInfo

public LatkaEventInfo getLatkaEventInfo(org.apache.commons.jelly.JellyContext context)
Return the LatkaEventInfo for the context, or null if none has been set

Parameters:
context - Context for the current Jelly script
Returns:
LatkaEventInfo for the context, or null if none has been set

setLatkaEventInfo

public void setLatkaEventInfo(org.apache.commons.jelly.JellyContext context,
                              LatkaEventInfo info)
Provide a LatkaEventInfo object.

Parameters:
context -
listener - LatkaEventInfo object

removeLatkaEventInfo

public void removeLatkaEventInfo(org.apache.commons.jelly.JellyContext context)
Remove a LatkaEventInfo object.

Parameters:
context -

getLatkaEventListener

public LatkaEventListener getLatkaEventListener(org.apache.commons.jelly.JellyContext context)
Return the LatkaEventListener for the context, or null if none has been set

Parameters:
context - Context for the current Jelly script
Returns:
LatkaEventListener for the context, or null if none has been set

setLatkaEventListener

public void setLatkaEventListener(org.apache.commons.jelly.JellyContext context,
                                  LatkaEventListener listener)
Provide a LatkaEventListener object.

Parameters:
context -
listener - LatkaEventListener object

findParentRequest

public Request findParentRequest(org.apache.commons.jelly.Tag tag)
Given a tag, find a parent RequestTag and return its Request object.

Parameters:
tag - Child tag of RequestTag
Returns:
Request


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.