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

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

public enum ContentTypeEnum
extends Enum<ContentTypeEnum>

Enum for all content type


Enum Constant Summary
CARD
           
LOCAL
           
NODE
           
PIVOT
           
PROFESSIONAL_THEMES
           
RESOURCES
           
THEMES
           
 
Method Summary
static ContentTypeEnum fromId(Long id)
          Get ContentTypeEnum from id
 Long getId()
           
static ContentTypeEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ContentTypeEnum[] 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 ContentTypeEnum CARD

NODE

public static final ContentTypeEnum NODE

RESOURCES

public static final ContentTypeEnum RESOURCES

THEMES

public static final ContentTypeEnum THEMES

PROFESSIONAL_THEMES

public static final ContentTypeEnum PROFESSIONAL_THEMES

PIVOT

public static final ContentTypeEnum PIVOT

LOCAL

public static final ContentTypeEnum LOCAL
Method Detail

values

public static ContentTypeEnum[] 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 (ContentTypeEnum c : ContentTypeEnum.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ContentTypeEnum 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

fromId

public static ContentTypeEnum fromId(Long id)
Get ContentTypeEnum from id

Parameters:
id - the id to get
Returns:
the corresponding enum, null if not found


Copyright © 2013 Mairie de Paris. All Rights Reserved.