public final class Localized extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static Localized |
getInstance()
A default non-specific localized object
|
static Localized |
getInstance(Locale locale)
Obtain a Localized object for the specified locale
|
static Localized |
getInstance(Map<String,List<String>> locales)
Obtain a Localized object for the specified locales
|
static Localized |
getInstance(javax.jcr.Node node)
Gets an instance of Localized where the parameter indicates a translation from
which to form the localized object.
|
Locale |
getLocale()
Returns the Locale object if available and if the Locale object holds
enough information to specify a translation.
|
int |
hashCode() |
Localized |
matches(Localized candidate1,
Localized candidate2)
DO NOT USE THIS METHOD IS NOT PART OF THE PUBLIC API
|
void |
setTranslation(javax.jcr.Node node)
DO NOT USE THIS METHOD IS NOT PART OF THE PUBLIC API.
|
String |
toString() |
public static Localized getInstance()
public static Localized getInstance(Locale locale)
locale
- the Locale to base the Localized object onpublic static Localized getInstance(Map<String,List<String>> locales)
locales
- public Locale getLocale()
public Localized matches(Localized candidate1, Localized candidate2)
public static Localized getInstance(javax.jcr.Node node) throws javax.jcr.RepositoryException
node
- the translation for which to return the Localized objectjavax.jcr.RepositoryException
public void setTranslation(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2007–2015 Hippo B.V. (http://www.onehippo.com). All rights reserved.