Enum ElementOriginCategory
- java.lang.Object
-
- java.lang.Enum<ElementOriginCategory>
-
- org.odpi.openmetadata.accessservices.assetowner.metadataelements.ElementOriginCategory
-
- All Implemented Interfaces:
Serializable,Comparable<ElementOriginCategory>
public enum ElementOriginCategory extends Enum<ElementOriginCategory> implements Serializable
ElementOriginCategory defines where the metadata comes from.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATIONCONTENT_PACKDEREGISTERED_REPOSITORYEXPORT_ARCHIVEEXTERNAL_SOURCELOCAL_COHORTUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return the description of the metadata element origin.StringgetName()Return the name of the metadata element origin.intgetOrdinal()Return the code for metadata element.StringtoString()Standard toString method.static ElementOriginCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static ElementOriginCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ElementOriginCategory UNKNOWN
-
LOCAL_COHORT
public static final ElementOriginCategory LOCAL_COHORT
-
EXPORT_ARCHIVE
public static final ElementOriginCategory EXPORT_ARCHIVE
-
CONTENT_PACK
public static final ElementOriginCategory CONTENT_PACK
-
DEREGISTERED_REPOSITORY
public static final ElementOriginCategory DEREGISTERED_REPOSITORY
-
CONFIGURATION
public static final ElementOriginCategory CONFIGURATION
-
EXTERNAL_SOURCE
public static final ElementOriginCategory EXTERNAL_SOURCE
-
-
Method Detail
-
values
public static ElementOriginCategory[] 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 (ElementOriginCategory c : ElementOriginCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElementOriginCategory 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 code for metadata element.- Returns:
- int code for the origin
-
getName
public String getName()
Return the name of the metadata element origin.- Returns:
- String name
-
getDescription
public String getDescription()
Return the description of the metadata element origin.- Returns:
- String description
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classEnum<ElementOriginCategory>- Returns:
- print out of variables in a JSON-style
-
-