Enum FhirBucketSchemaVersion
- java.lang.Object
-
- java.lang.Enum<FhirBucketSchemaVersion>
-
- org.linuxforhealth.fhir.bucket.app.FhirBucketSchemaVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FhirBucketSchemaVersion>
public enum FhirBucketSchemaVersion extends java.lang.Enum<FhirBucketSchemaVersion>
Tracks the incremental changes to the FHIR BUCKET schema as it evolves.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description V0001
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Getter for the text description of the schema changestatic FhirBucketSchemaVersion
getLatestSchemaVersion()
Get the max FhirBucketSchemaVersion based on vidstatic FhirBucketSchemaVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FhirBucketSchemaVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.int
vid()
Getter for the version number used by VERSION_HISTORY.
-
-
-
Enum Constant Detail
-
V0001
public static final FhirBucketSchemaVersion V0001
-
-
Method Detail
-
values
public static FhirBucketSchemaVersion[] 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 (FhirBucketSchemaVersion c : FhirBucketSchemaVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FhirBucketSchemaVersion 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
-
vid
public int vid()
Getter for the version number used by VERSION_HISTORY. We use vid here as a short name to improve readability where this value is used- Returns:
-
getDescription
public java.lang.String getDescription()
Getter for the text description of the schema change- Returns:
-
getLatestSchemaVersion
public static FhirBucketSchemaVersion getLatestSchemaVersion()
Get the max FhirBucketSchemaVersion based on vid- Returns:
-
-