Package org.hl7.fhir.r4.model
Enum FhirPublication
- java.lang.Object
-
- java.lang.Enum<FhirPublication>
-
- org.hl7.fhir.r4.model.FhirPublication
-
- All Implemented Interfaces:
Serializable,Comparable<FhirPublication>
public enum FhirPublication extends Enum<FhirPublication>
This enumreation is special, and hand crafted. It only supports a subset of the actual published FHIR versions, those that are still supported.- Author:
- graha
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FhirPublicationfromCode(String v)static FhirPublicationfromVersion(Enumerations.FHIRVersion v)StringtoCode()static FhirPublicationvalueOf(String name)Returns the enum constant of this type with the specified name.static FhirPublication[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final FhirPublication NULL
-
DSTU1
public static final FhirPublication DSTU1
-
DSTU2
public static final FhirPublication DSTU2
-
DSTU2016May
public static final FhirPublication DSTU2016May
-
STU3
public static final FhirPublication STU3
-
R4
public static final FhirPublication R4
-
-
Method Detail
-
values
public static FhirPublication[] 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 (FhirPublication c : FhirPublication.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FhirPublication 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
-
fromCode
public static FhirPublication fromCode(String v)
-
fromVersion
public static FhirPublication fromVersion(Enumerations.FHIRVersion v)
-
-