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 java.util.Locale |
parseLocale(java.lang.String locale)
See parseLocale(String, String) for details.
|
static java.util.Locale |
parseLocale(java.lang.String locale,
java.lang.String variant)
Parses the given locale string into its language and (optionally)
country components, and returns the corresponding
java.util.Locale object.
|
void |
setScope(java.lang.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(java.lang.String scope)
public static java.util.Locale parseLocale(java.lang.String locale)
public static java.util.Locale parseLocale(java.lang.String locale, java.lang.String variant)
locale
- the locale string to parsevariant
- the variantjava.lang.IllegalArgumentException
- if the given locale does not have a
language component or has an empty country componentCopyright © 2012. All Rights Reserved.