public enum KeyType extends Enum<KeyType>
Modifier and Type | Method and Description |
---|---|
String |
getCode()
returns code
|
String |
getDefaultLabel()
returns label
|
int |
getId()
returns id
|
String |
getLocalizedMessage(Locale locale)
returns level label
|
static fr.paris.lutece.util.ReferenceList |
getReferenceList(Locale locale)
Builds a RefenrenceList object containing all the SupportLevel objects
|
static KeyType |
valueOf(int nId)
returns KeyType enum for id
|
static KeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyType STRING
public static final KeyType NUMERIC
public static final KeyType FILE
public static final KeyType DATE
public static KeyType[] values()
for (KeyType c : KeyType.values()) System.out.println(c);
public static KeyType 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 int getId()
public String getCode()
public String getDefaultLabel()
public static KeyType valueOf(int nId)
nId
- id of KeyTypepublic String getLocalizedMessage(Locale locale)
locale
- the locale used to retrieve the localized messagespublic static fr.paris.lutece.util.ReferenceList getReferenceList(Locale locale)
locale
- the locale used to retrieve the localized messagesCopyright © 2018 City of Paris. All rights reserved.