org.kohsuke.stapler.jelly
Class InternationalizedStringExpression
java.lang.Object
org.apache.commons.jelly.expression.ExpressionSupport
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
Fields inherited from class org.apache.commons.jelly.expression.ExpressionSupport |
EMPTY_ITERATOR |
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 |
InternationalizedStringExpression
public InternationalizedStringExpression(ResourceBundle resourceBundle,
java.lang.String text)
throws org.apache.commons.jelly.JellyException
- Throws:
org.apache.commons.jelly.JellyException
getExpressionText
public java.lang.String getExpressionText()
evaluate
public java.lang.Object evaluate(org.apache.commons.jelly.JellyContext jellyContext)
Copyright © 2008. All Rights Reserved.