public enum MessageDirection extends Enum<MessageDirection>
| Enum Constant and Description |
|---|
AGENT_TO_USER |
USER_TO_AGENT |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalizedMessage(Locale locale)
Gives the localized message
|
static fr.paris.lutece.util.ReferenceList |
getReferenceList(Locale locale)
Builds a RefenrenceList object containing all the MessageDirection objects
|
static MessageDirection |
valueOf(int nMessageDirectionId)
returns MessageDirection enum from id
|
static MessageDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageDirection USER_TO_AGENT
public static final MessageDirection AGENT_TO_USER
public static MessageDirection[] values()
for (MessageDirection c : MessageDirection.values()) System.out.println(c);
public static MessageDirection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static MessageDirection valueOf(int nMessageDirectionId)
nMessageDirectionId - level valuepublic String getLocalizedMessage(Locale locale)
locale - the locale to usepublic static fr.paris.lutece.util.ReferenceList getReferenceList(Locale locale)
locale - the locale used to retrieve the localized messagesCopyright © 2020 City of Paris. All rights reserved.