fr.paris.lutece.plugins.dila.business.enums
Enum AudienceCategoryEnum

java.lang.Object
  extended by java.lang.Enum<AudienceCategoryEnum>
      extended by fr.paris.lutece.plugins.dila.business.enums.AudienceCategoryEnum
All Implemented Interfaces:
Serializable, Comparable<AudienceCategoryEnum>

public enum AudienceCategoryEnum
extends Enum<AudienceCategoryEnum>


Enum Constant Summary
ASSOCIATIONS
           
INDIVIDUALS
           
PROFESSIONNALS
           
 
Method Summary
static AudienceCategoryEnum fromId(Long lId)
          Get the enum from its id
static AudienceCategoryEnum fromLabel(String strLabel)
          Get the enum from its label
 Long getId()
           
 String getLabel()
           
static AudienceCategoryEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AudienceCategoryEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INDIVIDUALS

public static final AudienceCategoryEnum INDIVIDUALS

ASSOCIATIONS

public static final AudienceCategoryEnum ASSOCIATIONS

PROFESSIONNALS

public static final AudienceCategoryEnum PROFESSIONNALS
Method Detail

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.