fr.paris.lutece.plugins.dila.service
Enum DilaLocalTypeEnum
java.lang.Object
java.lang.Enum<DilaLocalTypeEnum>
fr.paris.lutece.plugins.dila.service.DilaLocalTypeEnum
- All Implemented Interfaces:
- Serializable, Comparable<DilaLocalTypeEnum>
public enum DilaLocalTypeEnum
- extends Enum<DilaLocalTypeEnum>
Eunm for type resource
CARD
public static final DilaLocalTypeEnum CARD
FOLDER
public static final DilaLocalTypeEnum FOLDER
values
public static DilaLocalTypeEnum[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (DilaLocalTypeEnum c : DilaLocalTypeEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DilaLocalTypeEnum valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null
getId
public Long getId()
- Returns:
- the _lId
getLabel
public String getLabel()
- Returns:
- the _strLabel
fromId
public static DilaLocalTypeEnum fromId(Long lId)
- Get the enum from its id
- Parameters:
lId - the id to search
- Returns:
- the corresponding enum
Copyright © 2013 Mairie de Paris. All Rights Reserved.