Package ca.uhn.fhir.context
Enum FhirVersionEnum
- java.lang.Object
-
- java.lang.Enum<FhirVersionEnum>
-
- ca.uhn.fhir.context.FhirVersionEnum
-
- All Implemented Interfaces:
Serializable,Comparable<FhirVersionEnum>
public enum FhirVersionEnum extends Enum<FhirVersionEnum>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FhirVersionEnumforVersionString(String theVersionString)Returns theFhirVersionEnumwhich corresponds to a specific version of FHIR.StringgetFhirVersionString()IFhirVersiongetVersionImplementation()booleanisEqualOrNewerThan(FhirVersionEnum theVersion)booleanisEquivalentTo(FhirVersionEnum theVersion)booleanisNewerThan(FhirVersionEnum theVersion)booleanisOlderThan(FhirVersionEnum theVersion)booleanisPresentOnClasspath()Returns true if the given version is present on the classpathbooleanisRi()Is this version using the HL7.org RI structures?FhirContextnewContext()static FhirVersionEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static FhirVersionEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DSTU2
public static final FhirVersionEnum DSTU2
-
DSTU2_HL7ORG
public static final FhirVersionEnum DSTU2_HL7ORG
-
DSTU2_1
public static final FhirVersionEnum DSTU2_1
-
DSTU3
public static final FhirVersionEnum DSTU3
-
R4
public static final FhirVersionEnum R4
-
R5
public static final FhirVersionEnum R5
-
-
Method Detail
-
values
public static FhirVersionEnum[] 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 (FhirVersionEnum c : FhirVersionEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FhirVersionEnum 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
-
getFhirVersionString
public String getFhirVersionString()
-
getVersionImplementation
public IFhirVersion getVersionImplementation()
-
isEqualOrNewerThan
public boolean isEqualOrNewerThan(FhirVersionEnum theVersion)
-
isEquivalentTo
public boolean isEquivalentTo(FhirVersionEnum theVersion)
-
isNewerThan
public boolean isNewerThan(FhirVersionEnum theVersion)
-
isOlderThan
public boolean isOlderThan(FhirVersionEnum theVersion)
-
isPresentOnClasspath
public boolean isPresentOnClasspath()
Returns true if the given version is present on the classpath
-
isRi
public boolean isRi()
Is this version using the HL7.org RI structures?
-
newContext
public FhirContext newContext()
-
forVersionString
public static FhirVersionEnum forVersionString(String theVersionString)
Returns theFhirVersionEnumwhich corresponds to a specific version of FHIR. Partial version strings (e.g. "3.0") are acceptable.- Returns:
- Returns null if no version exists matching the given string
-
-