|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.api.lib.i18n.Language
public class Language
language object
Constructor Summary | |
---|---|
Language(String id,
Locale locale,
Properties dic)
load a language object according to given id, locale and dic. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Language(String id, Locale locale, Properties dic)
id
- the id string, customizable.Method Detail |
---|
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 property
public Object getProperty(String key)
Resolvable
Resolvable.get(String)
.
getProperty
in interface Resolvable
key
- key of the property
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |