public class SetLocaleTag extends TagSupport
body, context, parent
Constructor and Description |
---|
SetLocaleTag()
Creates a new instance of SetLocaleTag
|
Modifier and Type | Method and Description |
---|---|
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized.
|
static Locale |
parseLocale(String locale)
See parseLocale(String, String) for details.
|
static Locale |
parseLocale(String locale,
String variant)
Parses the given locale string into its language and (optionally)
country components, and returns the corresponding
java.util.Locale object.
|
void |
setScope(String scope) |
void |
setValue(Expression value) |
void |
setVariant(Expression variant) |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
public void doTag(XMLOutput output) throws JellyTagException
JellyTagException
public void setValue(Expression value)
public void setVariant(Expression variant)
public void setScope(String scope)
public static Locale parseLocale(String locale)
public static Locale parseLocale(String locale, String variant)
locale
- the locale string to parsevariant
- the variantIllegalArgumentException
- if the given locale does not have a
language component or has an empty country componentCopyright © 2014. All rights reserved.