|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.tidalwave.role.spi.DefaultDisplayable
public class DefaultDisplayable
A default implementation of LocalizedDisplayable
which a single, immutable display name in
Locale.ENGLISH
language.
Field Summary |
---|
Fields inherited from interface it.tidalwave.role.LocalizedDisplayable |
---|
LocalizedDisplayable |
Fields inherited from interface it.tidalwave.role.Displayable |
---|
DEFAULT, Displayable |
Constructor Summary | |
---|---|
DefaultDisplayable(String displayName)
Creates an instance with a given display name. |
|
DefaultDisplayable(String displayName,
String toStringName)
Creates an instance with a given display name in Locale.ENGLISH and an explicit identifier for
toString() . |
Method Summary | |
---|---|
String |
getDisplayName()
Returns the display name in the current Locale . |
String |
getDisplayName(Locale locale)
Returns the display name in the given Locale . |
Map<Locale,String> |
getDisplayNames()
Returns all the display names in Map where they are indexed by Locale . |
SortedSet<Locale> |
getLocales()
Returns the supported Locale s. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultDisplayable(@Nonnull String displayName)
displayName
- the display namepublic DefaultDisplayable(@Nonnull String displayName, @Nonnull String toStringName)
Locale.ENGLISH
and an explicit identifier for
toString()
.
displayName
- the display nametoStringName
- the name to be rendered when toString()
is calledMethod Detail |
---|
@Nonnull public String getDisplayName()
Locale
.
getDisplayName
in interface Displayable
@Nonnull public String getDisplayName(@Nonnull Locale locale)
Locale
.
getDisplayName
in interface LocalizedDisplayable
locale
- the Locale
@Nonnull public SortedSet<Locale> getLocales()
Locale
s.
getLocales
in interface LocalizedDisplayable
Locale
s@Nonnull public Map<Locale,String> getDisplayNames()
Map
where they are indexed by Locale
.
getDisplayNames
in interface LocalizedDisplayable
@Nonnull public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |