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

java.lang.Object
  extended by java.lang.Enum<ResourceTypeEnum>
      extended by 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


Enum Constant Summary
CARD
           
FOLDER
           
HOW_TO
           
HOW_TO_HOME
           
Q_AND_A
           
RESOURCE
           
SUBTHEME
           
THEME
           
 
Method Summary
static ResourceTypeEnum fromLabel(String strLabel)
          Get enum from label
 Long getContentType()
           
 String getLabel()
           
static ResourceTypeEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResourceTypeEnum[] 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 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
Method Detail

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