org.apache.commons.jelly.tags.fmt
Class MessageTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.fmt.MessageTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class MessageTag
extends org.apache.commons.jelly.TagSupport

Support for tag handlers for <message>, the lookup up localized message tag in JSTL.

Version:
1.1
Author:
Willie Vu

Field Summary
private  org.apache.commons.jelly.expression.Expression bundle
           
private  org.apache.commons.jelly.expression.Expression key
           
private  LocalizationContext locCtxt
           
private  java.util.List params
           
private  java.lang.String scope
           
private static java.lang.String UNDEFINED_KEY
           
private  java.lang.String var
           
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
MessageTag()
          Creates a new instance of MessageTag
 
Method Summary
 void addParam(java.lang.Object arg)
          Adds an argument (for parametric replacement) to this tag's message.
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 void setBundle(org.apache.commons.jelly.expression.Expression bundle)
          Setter for property bundle.
 void setKey(org.apache.commons.jelly.expression.Expression key)
          Setter for property key.
 void setScope(java.lang.String scope)
          Setter for property scope.
 void setVar(java.lang.String var)
          Setter for property var.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED_KEY

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

key

private org.apache.commons.jelly.expression.Expression key

bundle

private org.apache.commons.jelly.expression.Expression bundle

locCtxt

private LocalizationContext locCtxt

var

private java.lang.String var

scope

private java.lang.String scope

params

private java.util.List params
Constructor Detail

MessageTag

public MessageTag()
Creates a new instance of MessageTag

Method Detail

addParam

public void addParam(java.lang.Object arg)
Adds an argument (for parametric replacement) to this tag's message.


doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

setKey

public void setKey(org.apache.commons.jelly.expression.Expression key)
Setter for property key.

Parameters:
key - New value of property key.

setBundle

public void setBundle(org.apache.commons.jelly.expression.Expression bundle)
Setter for property bundle.

Parameters:
bundle - New value of property bundle.

setVar

public void setVar(java.lang.String var)
Setter for property var.

Parameters:
var - New value of property var.

setScope

public void setScope(java.lang.String scope)
Setter for property scope.

Parameters:
scope - New value of property scope.