|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.site.content.Localized
@Entity public abstract class Localized
represents a Localized in the staindoctor model.
| Constructor Summary | |
|---|---|
protected |
Localized()
used by HibernateTM. |
|
Localized(java.lang.String n)
builds a new Localized with the given name. |
| Method Summary | |
|---|---|
java.lang.Long |
getId()
returns the id. |
java.lang.String |
getLocalization(java.util.Locale l)
returns the localization for the given Locale. |
java.lang.String |
getLocalization(java.lang.String lang)
returns the localization for the given language. |
java.util.Map<java.lang.String,java.lang.String> |
getLocalizations()
returns the localizations. |
java.lang.String |
getName()
returns the name of the Localization. |
void |
putLocalization(java.lang.String lang,
java.lang.String loc)
puts a localization to the localizations map. |
void |
removeLocalization(java.lang.String lang)
remove the localisation for the given language. |
void |
setName(java.lang.String n)
sets the name of the Localization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Localized()
public Localized(java.lang.String n)
Localized with the given name.
n - the internal name| Method Detail |
|---|
public final java.lang.Long getId()
public final java.lang.String getName()
Localization.
getName in interface INamedLocalizationpublic final void setName(java.lang.String n)
Localization.
setName in interface INameablen - the name to setpublic final java.util.Map<java.lang.String,java.lang.String> getLocalizations()
public final java.lang.String getLocalization(java.lang.String lang)
lang - the language
public final java.lang.String getLocalization(java.util.Locale l)
Locale.
l - the Locale
Locale
public final void putLocalization(java.lang.String lang,
java.lang.String loc)
lang - the languageloc - the localizationpublic final void removeLocalization(java.lang.String lang)
lang - the language
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||