Package nl.vpro.io.prepr.domain
Enum PreprStatus
- java.lang.Object
-
- java.lang.Enum<PreprStatus>
-
- nl.vpro.io.prepr.domain.PreprStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<PreprStatus>
public enum PreprStatus extends Enum<PreprStatus>
- Since:
- 0.1
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreprStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static PreprStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
published
public static final PreprStatus published
-
pending
public static final PreprStatus pending
-
approval
public static final PreprStatus approval
-
draft
public static final PreprStatus draft
-
unpublished
public static final PreprStatus unpublished
-
expired
public static final PreprStatus expired
-
archived
public static final PreprStatus archived
-
-
Method Detail
-
values
public static PreprStatus[] 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 (PreprStatus c : PreprStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PreprStatus 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
-
-