Enum Class KeyType
- All Implemented Interfaces:
Serializable,Comparable<KeyType>,Constable
enum representing type of attribute
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetCode()returns codereturns labelintgetId()returns idgetLocalizedMessage(Locale locale) returns level labelstatic fr.paris.lutece.util.ReferenceListgetReferenceList(Locale locale) Builds a RefenrenceList object containing all the SupportLevel objectsstatic KeyTypevalueByCode(String code) returns KeyType enum for idstatic KeyTypevalueOf(int nId) returns KeyType enum for idstatic KeyTypeReturns the enum constant of this class with the specified name.static KeyType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
STRING
-
NUMERIC
-
FILE
-
DATE
-
ENUM
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()returns id- Returns:
- id
-
getCode
returns code- Returns:
- code
-
getDefaultLabel
returns label- Returns:
- label
-
valueOf
returns KeyType enum for id- Parameters:
nId- id of KeyType- Returns:
- KeyType enum
-
valueByCode
returns KeyType enum for id- Parameters:
code- code of KeyType- Returns:
- KeyType enum
-
getLocalizedMessage
returns level label- Parameters:
locale- the locale used to retrieve the localized messages- Returns:
- the message
-
getReferenceList
Builds a RefenrenceList object containing all the SupportLevel objects- Parameters:
locale- the locale used to retrieve the localized messages- Returns:
- the ReferenceList object
-