Package org.openurp.edu.base.model
Enum AuditState
- java.lang.Object
-
- java.lang.Enum<AuditState>
-
- org.openurp.edu.base.model.AuditState
-
- All Implemented Interfaces:
Serializable,Comparable<AuditState>
public enum AuditState extends Enum<AuditState>
通用的审核状态枚举类,有4种状态:未提交、已提交、通过、不通过
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTEDREJECTEDSUBMITTEDUNSUBMITTED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEnName()StringgetFullName()StringgetName()static AuditStatevalueOf(String name)Returns the enum constant of this type with the specified name.static AuditState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSUBMITTED
public static final AuditState UNSUBMITTED
-
SUBMITTED
public static final AuditState SUBMITTED
-
ACCEPTED
public static final AuditState ACCEPTED
-
REJECTED
public static final AuditState REJECTED
-
-
Method Detail
-
values
public static AuditState[] 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 (AuditState c : AuditState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuditState 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
-
getEnName
public String getEnName()
-
getName
public String getName()
-
getFullName
public String getFullName()
-
-