fr.paris.lutece.plugins.dila.business.enums
Enum ResourceTypeEnum
java.lang.Object
java.lang.Enum<ResourceTypeEnum>
fr.paris.lutece.plugins.dila.business.enums.ResourceTypeEnum
- All Implemented Interfaces:
- Serializable, Comparable<ResourceTypeEnum>
public enum ResourceTypeEnum
- extends Enum<ResourceTypeEnum>
Enum for all resource types
CARD
public static final ResourceTypeEnum CARD
RESOURCE
public static final ResourceTypeEnum RESOURCE
Q_AND_A
public static final ResourceTypeEnum Q_AND_A
FOLDER
public static final ResourceTypeEnum FOLDER
SUBTHEME
public static final ResourceTypeEnum SUBTHEME
HOW_TO
public static final ResourceTypeEnum HOW_TO
THEME
public static final ResourceTypeEnum THEME
HOW_TO_HOME
public static final ResourceTypeEnum HOW_TO_HOME
values
public static ResourceTypeEnum[] 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 (ResourceTypeEnum c : ResourceTypeEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ResourceTypeEnum 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
fromLabel
public static ResourceTypeEnum fromLabel(String strLabel)
- Get enum from label
- Parameters:
strLabel - label to find
- Returns:
- the corresponding
ResourceTypeEnum or null
getLabel
public String getLabel()
- Returns:
- _strLabel the label
getContentType
public Long getContentType()
- Returns:
- _lContentType the content type
Copyright © 2014 Mairie de Paris. All Rights Reserved.