public class Language extends java.lang.Object implements java.io.Serializable, Resolvable
Constructor and Description |
---|
Language(java.lang.String id,
java.util.Locale locale,
java.util.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.
|
java.lang.Object |
get(java.lang.String key)
Get the property named by key or null if the property does not exist or
is not set.
|
java.util.Properties |
getDic() |
java.lang.String |
getId()
get the id of the language object.
|
java.util.Locale |
getLocale() |
java.lang.Object |
getProperty(java.lang.String key)
Get the property named by key or null if the property does not exist or
is not set.
|
void |
setDic(java.util.Properties dic) |
void |
setId(java.lang.String id)
set the id for the current language object.
|
void |
setLocale(java.util.Locale locale) |
java.lang.String |
toString() |
public Language(java.lang.String id, java.util.Locale locale, java.util.Properties dic)
id
- the id string, customizable.locale
- localedic
- dictionary as propertiespublic java.lang.String getId()
public void setId(java.lang.String id)
id
- the id string, is customizable.public void setDic(java.util.Properties dic)
public java.util.Properties getDic()
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
public boolean canResolve()
Resolvable
Resolvable.getProperty(String)
or Resolvable.get(String)
will return null.canResolve
in interface Resolvable
public java.lang.Object get(java.lang.String key)
Resolvable
get
in interface Resolvable
key
- key of the propertypublic java.lang.Object getProperty(java.lang.String key)
Resolvable
Resolvable.get(String)
.getProperty
in interface Resolvable
key
- key of the propertypublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 Gentics Software. All Rights Reserved.