ca.uhn.hl7v2
Enum Version
java.lang.Object
java.lang.Enum<Version>
ca.uhn.hl7v2.Version
- All Implemented Interfaces:
- Serializable, Comparable<Version>
public enum Version
- extends Enum<Version>
V21
public static final Version V21
V22
public static final Version V22
V23
public static final Version V23
V231
public static final Version V231
V24
public static final Version V24
V25
public static final Version V25
V251
public static final Version V251
V26
public static final Version V26
values
public static Version[] 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 (Version c : Version.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Version 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 name
NullPointerException - if the argument is null
getVersion
public String getVersion()
getPackageVersion
public String getPackageVersion()
supportsVersion
public static boolean supportsVersion(String version)
versionOf
public static Version versionOf(String version)
- Parameters:
version - The version string, e.g. "2.1" or "2.6"
isGreaterThan
public boolean isGreaterThan(Version theVersion)
- Returns true if this version is greater than the
specified version
latestVersion
public static Version latestVersion()
Copyright © 2001-2012 University Health Network. All Rights Reserved.