Enum BabelImageSource
- All Implemented Interfaces:
Serializable, Comparable<BabelImageSource>, java.lang.constant.Constable
Sources for BabelNet images, sorted by priority.
- Author:
- navigli, vannella
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBabelNet imageBabelPic gold imageBabelPic silver imageimageNet imageOmegaWiki imageWikipedia imageWikidata image -
Method Summary
Modifier and TypeMethodDescriptionstatic BabelLicensegetLicense(BabelImageSource source) Returns the license for a given image sourcestatic BabelImageSourceReturns the enum constant of this type with the specified name.static BabelImageSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BABELNET
BabelNet image -
OMWIKI
OmegaWiki image -
WIKI
Wikipedia image -
IMAGENET
imageNet image -
WIKIDATA
Wikidata image -
BABELPIC_GOLD
BabelPic gold image -
BABELPIC_SILVER
BabelPic silver image
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getLicense
Returns the license for a given image source- Parameters:
source- image source- Returns:
- the
BabelLicensefor the image source
-