Enum Status
- java.lang.Object
-
- java.lang.Enum<Status>
-
- org.odpi.openmetadata.accessservices.subjectarea.properties.enums.Status
-
- All Implemented Interfaces:
Serializable,Comparable<Status>
public enum Status extends Enum<Status> implements Serializable
The Status defines the status of a relationship or an entity in the glossary. It effectively defines its visibility to different types of queries. Most queries by default will only return instances in the active status.- UNKNOWN Unknown status of instance.
- DRAFT The content is incomplete.
- PREPARED The content is ready for review.
- PROPOSED The content is in review.
- APPROVED Instance approved.
- ACTIVE: the instance is in active use.
- DELETED: the instance has been deleted and is waiting to be purged. It is kept in the metadata collection to support a restore request. It is not returned on normal queries.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVEThe instance is in useAPPROVEDThe content has been approved.DELETEDInstance that has been deleted and is no longer in use.DRAFTThe content incomplete and not ready for review.PREPAREDThe content is ready for review.PROPOSEDThe content is in reviewUNKNOWNUnknown status of instance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrdinal()Return the numerical value for the enum.StringgetStatusDescription()Return the description for the enum.StringgetStatusName()Return the descriptive name for the enum.static StatusvalueOf(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
-
UNKNOWN
public static final Status UNKNOWN
Unknown status of instance
-
DRAFT
public static final Status DRAFT
The content incomplete and not ready for review.
-
PREPARED
public static final Status PREPARED
The content is ready for review.
-
PROPOSED
public static final Status PROPOSED
The content is in review
-
APPROVED
public static final Status APPROVED
The content has been approved.
-
ACTIVE
public static final Status ACTIVE
The instance is in use
-
DELETED
public static final Status DELETED
Instance that has been deleted and is no longer in use.
-
-
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(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
-
getOrdinal
public int getOrdinal()
Return the numerical value for the enum.- Returns:
- int enum value ordinal
-
getStatusName
public String getStatusName()
Return the descriptive name for the enum.- Returns:
- String name
-
getStatusDescription
public String getStatusDescription()
Return the description for the enum.- Returns:
- String description
-
-