fr.paris.lutece.plugins.dila.business.enums
Enum ContentTypeEnum
java.lang.Object
java.lang.Enum<ContentTypeEnum>
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
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
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 © 2014 Mairie de Paris. All Rights Reserved.