public class Language extends Object implements Serializable, Resolvable
Constructor and Description |
---|
Language(String id,
Locale locale,
Properties dic)
load a language object according to given id, locale and dic.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canResolve()
Check whether the resolvable is capable of resolving properties right
now.
|
Object |
get(String key)
Get the property named by key or null if the property does not exist or
is not set.
|
Properties |
getDic() |
String |
getId()
get the id of the language object.
|
Locale |
getLocale() |
Object |
getProperty(String key)
Get the property named by key or null if the property does not exist or
is not set.
|
void |
setDic(Properties dic) |
void |
setId(String id)
set the id for the current language object.
|
void |
setLocale(Locale locale) |
String |
toString() |
public Language(String id, Locale locale, Properties dic)
id
- the id string, customizable.public String getId()
public void setId(String id)
id
- the id string, is customizable.public void setDic(Properties dic)
public Properties getDic()
public Locale getLocale()
public void setLocale(Locale locale)
public boolean canResolve()
Resolvable
Resolvable.getProperty(String)
or Resolvable.get(String)
will return null.canResolve
in interface Resolvable
public Object get(String key)
Resolvable
get
in interface Resolvable
key
- key of the propertypublic Object getProperty(String key)
Resolvable
Resolvable.get(String)
.getProperty
in interface Resolvable
key
- key of the propertyCopyright © 2014 Gentics Software GmbH. All Rights Reserved.