Enum InstanceProvenanceType
- java.lang.Object
-
- java.lang.Enum<InstanceProvenanceType>
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProvenanceType
-
- All Implemented Interfaces:
Serializable,Comparable<InstanceProvenanceType>
public enum InstanceProvenanceType extends Enum<InstanceProvenanceType> implements Serializable
InstanceProvenanceType defines where the metadata comes from and, hence if it can be updated.- UNKNOWN: uninitialized provenance value.
- LOCAL_COHORT: the element is being maintained within the local cohort. The metadata collection id is for one of the repositories in the cohort. This metadata collection id identifies the home repository for this element.
- EXPORT_ARCHIVE: the element was created from an export archive. The metadata collection id for the element is the metadata collection id of the originating server. If the originating server later joins the cohort with the same metadata collection Id then these elements will be refreshed from the originating server's current repository.
- CONTENT_PACK: the element comes from an open metadata content pack. The metadata collection id of the elements is set to the GUID of the pack.
- DEREGISTERED_REPOSITORY: the element comes from a metadata repository that used to be a part of the repository cohort but has been deregistered. The metadata collection id remains the same. If the repository rejoins the cohort then these elements can be refreshed from the rejoining repository.
- CONFIGURATION: the element comes from a configuration server. The metadata collection id is null.
- DATA_PLATFORM: the element is being managed by an external data platform using the Data Platform OMAS. This data platform hosts the data assets it documents and the metadata is an integral part of its operation.
- EXTERNAL_ENGINE: the element is being maintained by an external engine that is manipulating data assets in real-time. The metadata describes events in real-time and as such should not be updated by other metadata processes.
- EXTERNAL_TOOL: the element is being maintained by an external tool. Typically this is descriptive metadata that the tool is using to provide a service. Hence it has tagged the metadata as read-only.
-
-
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 default description of the instance provenance type.StringgetName()Return the default name of the instance provenance type.intgetOrdinal()Return the numeric representation of the instance provenance type.StringtoString()toString() JSON-stylestatic InstanceProvenanceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static InstanceProvenanceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final InstanceProvenanceType UNKNOWN
-
LOCAL_COHORT
public static final InstanceProvenanceType LOCAL_COHORT
-
EXPORT_ARCHIVE
public static final InstanceProvenanceType EXPORT_ARCHIVE
-
CONTENT_PACK
public static final InstanceProvenanceType CONTENT_PACK
-
DEREGISTERED_REPOSITORY
public static final InstanceProvenanceType DEREGISTERED_REPOSITORY
-
CONFIGURATION
public static final InstanceProvenanceType CONFIGURATION
-
EXTERNAL_SOURCE
public static final InstanceProvenanceType EXTERNAL_SOURCE
-
-
Method Detail
-
values
public static InstanceProvenanceType[] 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 (InstanceProvenanceType c : InstanceProvenanceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstanceProvenanceType 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 numeric representation of the instance provenance type.- Returns:
- int ordinal
-
getName
public String getName()
Return the default name of the instance provenance type.- Returns:
- String name
-
getDescription
public String getDescription()
Return the default description of the instance provenance type.- Returns:
- String description
-
toString
public String toString()
toString() JSON-style- Overrides:
toStringin classEnum<InstanceProvenanceType>- Returns:
- string description
-
-