Enum EnumGenericStatus
- java.lang.Object
-
- java.lang.Enum<EnumGenericStatus>
-
- fr.paris.lutece.plugins.grubusiness.business.web.rs.EnumGenericStatus
-
- All Implemented Interfaces:
Serializable,Comparable<EnumGenericStatus>
public enum EnumGenericStatus extends Enum<EnumGenericStatus>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanexists(Integer nIdStatus)Check if id status existstatic EnumGenericStatusgetByStatusId(Integer nIdStatus)Return EnumGenericStatus by id statusStringgetLabel()IntegergetStatusId()booleanisFinalStatus()static EnumGenericStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static EnumGenericStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLOSED
public static final EnumGenericStatus CLOSED
-
PAID
public static final EnumGenericStatus PAID
-
TOCOMPLETE
public static final EnumGenericStatus TOCOMPLETE
-
TOPAY
public static final EnumGenericStatus TOPAY
-
ONGOING
public static final EnumGenericStatus ONGOING
-
CANCELED
public static final EnumGenericStatus CANCELED
-
-
Method Detail
-
values
public static EnumGenericStatus[] 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 (EnumGenericStatus c : EnumGenericStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnumGenericStatus 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 nameNullPointerException- if the argument is null
-
getStatusId
public Integer getStatusId()
- Returns:
- the _nStatusId
-
getLabel
public String getLabel()
- Returns:
- the _strLabel
-
isFinalStatus
public boolean isFinalStatus()
- Returns:
- true if is final
-
exists
public static boolean exists(Integer nIdStatus)
Check if id status exist- Parameters:
nIdStatus-- Returns:
- true if exist
-
getByStatusId
public static EnumGenericStatus getByStatusId(Integer nIdStatus)
Return EnumGenericStatus by id status- Parameters:
nIdStatus-- Returns:
- enumGenericStatus
-
-