fr.paris.lutece.plugins.dila.business.enums
Enum AudienceCategoryEnum
java.lang.Object
java.lang.Enum<AudienceCategoryEnum>
fr.paris.lutece.plugins.dila.business.enums.AudienceCategoryEnum
- All Implemented Interfaces:
- Serializable, Comparable<AudienceCategoryEnum>
public enum AudienceCategoryEnum
- extends Enum<AudienceCategoryEnum>
INDIVIDUALS
public static final AudienceCategoryEnum INDIVIDUALS
ASSOCIATIONS
public static final AudienceCategoryEnum ASSOCIATIONS
PROFESSIONNALS
public static final AudienceCategoryEnum PROFESSIONNALS
values
public static AudienceCategoryEnum[] 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 (AudienceCategoryEnum c : AudienceCategoryEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AudienceCategoryEnum 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
fromId
public static AudienceCategoryEnum fromId(Long lId)
- Get the enum from its id
- Parameters:
lId - the id to search
- Returns:
- the corresponding enum
getId
public Long getId()
- Returns:
- the _lId
getLabel
public String getLabel()
- Returns:
- the _strLabel
fromLabel
public static AudienceCategoryEnum fromLabel(String strLabel)
- Get the enum from its label
- Parameters:
strLabel - the label
- Returns:
- the corresponding enum, null if not found
Copyright © 2014 Mairie de Paris. All Rights Reserved.