|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.fmt.BundleTag
Support for tag handlers for <bundle>, the resource bundle loading tag in JSTL.
| Field Summary | |
private org.apache.commons.jelly.expression.Expression |
basename
|
private java.lang.String |
ebasename
evaluated basename |
private static java.util.Locale |
EMPTY_LOCALE
|
private java.lang.String |
eprefix
evaluated prefix |
private LocalizationContext |
locCtxt
|
private org.apache.commons.jelly.expression.Expression |
prefix
|
| Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
BundleTag()
|
|
| Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
private static java.util.ResourceBundle |
findMatch(java.lang.String basename,
java.util.Locale pref,
java.lang.ClassLoader cl)
|
LocalizationContext |
getLocalizationContext()
|
static LocalizationContext |
getLocalizationContext(org.apache.commons.jelly.JellyContext jc)
Gets the default I18N localization context. |
static LocalizationContext |
getLocalizationContext(org.apache.commons.jelly.JellyContext jc,
java.lang.String basename)
Gets the resource bundle with the given base name, whose locale is determined as follows: Check if a match exists between the ordered set of preferred locales and the available locales, for the given base name. |
java.lang.String |
getPrefixAsString()
|
void |
setBasename(org.apache.commons.jelly.expression.Expression basename)
Setter for property basename. |
void |
setPrefix(org.apache.commons.jelly.expression.Expression prefix)
Setter for property prefix. |
| Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.util.Locale EMPTY_LOCALE
private org.apache.commons.jelly.expression.Expression basename
private org.apache.commons.jelly.expression.Expression prefix
private java.lang.String ebasename
private java.lang.String eprefix
private LocalizationContext locCtxt
| Constructor Detail |
public BundleTag()
| Method Detail |
public LocalizationContext getLocalizationContext()
public java.lang.String getPrefixAsString()
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagExceptionpublic static LocalizationContext getLocalizationContext(org.apache.commons.jelly.JellyContext jc)
jc - Page in which to look up the default I18N localization context
public static LocalizationContext getLocalizationContext(org.apache.commons.jelly.JellyContext jc,
java.lang.String basename)
If no match was found in the previous step, check if a match exists between the fallback locale (given by the org.apache.commons.jelly.tags.fmt.fallbackLocale configuration setting) and the available locales, for the given base name.
basename - Resource bundle base name
private static java.util.ResourceBundle findMatch(java.lang.String basename,
java.util.Locale pref,
java.lang.ClassLoader cl)
public void setBasename(org.apache.commons.jelly.expression.Expression basename)
basename - New value of property basename.public void setPrefix(org.apache.commons.jelly.expression.Expression prefix)
prefix - New value of property prefix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||