fr.paris.lutece.plugins.dila.service
Enum DilaLocalTypeEnum

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

public enum DilaLocalTypeEnum
extends Enum<DilaLocalTypeEnum>

Eunm for type resource


Enum Constant Summary
CARD
           
FOLDER
           
 
Method Summary
static DilaLocalTypeEnum fromId(Long lId)
          Get the enum from its id
 Long getId()
           
 String getLabel()
           
static DilaLocalTypeEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DilaLocalTypeEnum[] 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

CARD

public static final DilaLocalTypeEnum CARD

FOLDER

public static final DilaLocalTypeEnum FOLDER
Method Detail

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 © 2014 Mairie de Paris. All Rights Reserved.