Package ca.uhn.hl7v2
Enum Class Version
- All Implemented Interfaces:
Serializable,Comparable<Version>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallVersions(Set<Version> someVersions) static Version[]booleanReturnstrueif the structure classes for this particular version are available on the classpath.Returns a list of all versions for which the structure JARs have been found on the classpath.static Version[]static Version[]Returns a version string (e.g.static VersionReturns the highest version for which the structure classes are found on the classes.booleanisGreaterThan(Version theVersion) Returns true if this version is greater than the specified versionstatic VersionReturns the newest available version of the message structure classes on the classpath, ornullif none are foundstatic VersionReturns the lowest version for which the structure classes are found on the classes.Construct and return a newGenericMessagefor the given versionstatic booleansupportsVersion(String theVersion) Returnstrueif theVersion is a valid HL7 version string representing a known version, e.g.static VersionReturns the enum constant of this class with the specified name.static Version[]values()Returns an array containing the constants of this enum class, in the order they are declared.static Version
-
Enum Constant Details
-
V21
-
V22
-
V23
-
V231
-
V24
-
V25
-
V251
-
V26
-
V27
-
V271
-
V28
-
V281
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getVersion
Returns a version string (e.g. "2.1", or "2.5.1") -
getPackageVersion
-
supportsVersion
Returnstrueif theVersion is a valid HL7 version string representing a known version, e.g. "2.4", "2.6" -
versionOf
- Parameters:
version- The version string, e.g. "2.1" or "2.6"
-
allVersions
- Parameters:
someVersions- set of versions to be tested- Returns:
trueif someVersions contain all supported HL7 versions
-
isGreaterThan
Returns true if this version is greater than the specified version -
latestVersion
Returns the newest available version of the message structure classes on the classpath, ornullif none are found -
asOf
-
except
-
before
-
modelPackageName
-
available
Returnstrueif the structure classes for this particular version are available on the classpath. -
availableVersions
Returns a list of all versions for which the structure JARs have been found on the classpath. -
lowestAvailableVersion
Returns the lowest version for which the structure classes are found on the classes. For instance, if
hapi-structures-v24-[version].jaris the only structure JAR on the current JVM classpath,V24will be returned.Returns
nullif none are found -
highestAvailableVersionOrDefault
-
newGenericMessage
Construct and return a newGenericMessagefor the given version
-