Package com.flower.docs.domain.common
Enum Status
- java.lang.Object
-
- java.lang.Enum<Status>
-
- com.flower.docs.domain.common.Status
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Status>
public enum Status extends java.lang.Enum<Status>
All possible status of an object <p>Java class for Status. <p>The following schema fragment specifies the expected content contained within this class. <pre> <simpleType name="Status"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="DRAFT"/> <enumeration value="NEW"/> <enumeration value="OPEN"/> <enumeration value="CLOSE"/> <enumeration value="INVALID"/> <enumeration value="DELETED"/> <enumeration value="OUT_OF_DATE"/> </restriction> </simpleType> </pre>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSE
State of a processed objectDELETED
State of a logically deleted objectDRAFT
State of a draft object which can be invalidINVALID
State of an invalid objectNEW
State of a never processed objectOPEN
State of an object which is currently processingOUT_OF_DATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Status
fromValue(java.lang.String v)
java.lang.String
value()
static Status
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DRAFT
public static final Status DRAFT
State of a draft object which can be invalid
-
NEW
public static final Status NEW
State of a never processed object
-
OPEN
public static final Status OPEN
State of an object which is currently processing
-
CLOSE
public static final Status CLOSE
State of a processed object
-
INVALID
public static final Status INVALID
State of an invalid object
-
DELETED
public static final Status DELETED
State of a logically deleted object
-
OUT_OF_DATE
public static final Status OUT_OF_DATE
-
-
Method Detail
-
values
public static Status[] 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 (Status c : Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Status valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public java.lang.String value()
-
fromValue
public static Status fromValue(java.lang.String v)
-
-