org.kohsuke.stapler.jelly
Class InternationalizedStringExpression

java.lang.Object
  extended by org.apache.commons.jelly.expression.ExpressionSupport
      extended by org.kohsuke.stapler.jelly.InternationalizedStringExpression
All Implemented Interfaces:
org.apache.commons.jelly.expression.Expression

public class InternationalizedStringExpression
extends org.apache.commons.jelly.expression.ExpressionSupport

Expression of the form "%messageName(arg1,arg2,...)" that represents internationalized text.

The "(arg1,...)" portion is optional and can be ommitted. Each argument is assumed to be a parenthesis-balanced expression and passed to JellyClassLoaderTearOff.EXPRESSION_FACTORY to be parsed.

The message resource is loaded from files like "xyz.properties" and "xyz_ja.properties" when the expression is placed in "xyz.jelly".

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.apache.commons.jelly.expression.ExpressionSupport
EMPTY_ITERATOR
 
Constructor Summary
InternationalizedStringExpression(ResourceBundle resourceBundle, java.lang.String text)
           
 
Method Summary
 java.lang.Object evaluate(org.apache.commons.jelly.JellyContext jellyContext)
           
 java.lang.String getExpressionText()
           
 
Methods inherited from class org.apache.commons.jelly.expression.ExpressionSupport
evaluateAsBoolean, evaluateAsIterator, evaluateAsString, evaluateRecurse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternationalizedStringExpression

public InternationalizedStringExpression(ResourceBundle resourceBundle,
                                         java.lang.String text)
                                  throws org.apache.commons.jelly.JellyException
Throws:
org.apache.commons.jelly.JellyException
Method Detail

getExpressionText

public java.lang.String getExpressionText()

evaluate

public java.lang.Object evaluate(org.apache.commons.jelly.JellyContext jellyContext)


Copyright © 2008. All Rights Reserved.