Package it.uniroma1.lcl.babelnet
Enum BabelVersion
- java.lang.Object
-
- java.lang.Enum<BabelVersion>
-
- it.uniroma1.lcl.babelnet.BabelVersion
-
- All Implemented Interfaces:
Version
,Serializable
,Comparable<BabelVersion>
public enum BabelVersion extends Enum<BabelVersion> implements Version
BabelNet version enumeration.- Author:
- navigli
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BabelVersion
getLatestVersion()
Returns the latest version of BabelNetLocalDate
getReleaseDate()
Returns the release date of the versionString
toString()
Returns the version stringstatic BabelVersion
valueOf(String name)
Returns the enum constant of this type with the specified name.static BabelVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final BabelVersion UNKNOWN
-
PRE_2_0
public static final BabelVersion PRE_2_0
-
V2_0
public static final BabelVersion V2_0
-
V2_0_1
public static final BabelVersion V2_0_1
-
V2_5
public static final BabelVersion V2_5
-
V2_5_1
public static final BabelVersion V2_5_1
-
V3_0
public static final BabelVersion V3_0
-
V3_1
public static final BabelVersion V3_1
-
V3_5
public static final BabelVersion V3_5
-
V3_6
public static final BabelVersion V3_6
-
V3_7
public static final BabelVersion V3_7
-
V4_0
public static final BabelVersion V4_0
-
V5_0
public static final BabelVersion V5_0
-
V5_1
public static final BabelVersion V5_1
-
V5_2
public static final BabelVersion V5_2
-
V5_3
public static final BabelVersion V5_3
-
LIVE
public static final BabelVersion LIVE
-
-
Method Detail
-
values
public static BabelVersion[] 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 (BabelVersion c : BabelVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BabelVersion 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
-
toString
public String toString()
Description copied from interface:Version
Returns the version string- Specified by:
toString
in interfaceVersion
- Overrides:
toString
in classEnum<BabelVersion>
- Returns:
- the version string
-
getReleaseDate
public LocalDate getReleaseDate()
Description copied from interface:Version
Returns the release date of the version- Specified by:
getReleaseDate
in interfaceVersion
- Returns:
- release date
-
getLatestVersion
public static BabelVersion getLatestVersion()
Returns the latest version of BabelNet- Returns:
- latest version of BabelNet
-
-