Package it.uniroma1.lcl.babelnet.data
Enum BabelImageSource
- java.lang.Object
-
- java.lang.Enum<BabelImageSource>
-
- it.uniroma1.lcl.babelnet.data.BabelImageSource
-
- All Implemented Interfaces:
Serializable
,Comparable<BabelImageSource>
public enum BabelImageSource extends Enum<BabelImageSource>
Sources for BabelNet images, sorted by priority.- Author:
- navigli, vannella
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BABELNET
BabelNet imageBABELPIC_GOLD
BabelPic gold imageBABELPIC_SILVER
BabelPic silver imageIMAGENET
imageNet imageOMWIKI
OmegaWiki imageWIKI
Wikipedia imageWIKIDATA
Wikidata image
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BabelLicense
getLicense(BabelImageSource source)
Returns the license for a given image sourcestatic BabelImageSource
valueOf(String name)
Returns 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 Detail
-
BABELNET
public static final BabelImageSource BABELNET
BabelNet image
-
OMWIKI
public static final BabelImageSource OMWIKI
OmegaWiki image
-
WIKI
public static final BabelImageSource WIKI
Wikipedia image
-
IMAGENET
public static final BabelImageSource IMAGENET
imageNet image
-
WIKIDATA
public static final BabelImageSource WIKIDATA
Wikidata image
-
BABELPIC_GOLD
public static final BabelImageSource BABELPIC_GOLD
BabelPic gold image
-
BABELPIC_SILVER
public static final BabelImageSource BABELPIC_SILVER
BabelPic silver image
-
-
Method Detail
-
values
public static BabelImageSource[] 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 (BabelImageSource c : BabelImageSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BabelImageSource 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
-
getLicense
public static BabelLicense getLicense(BabelImageSource source)
Returns the license for a given image source- Parameters:
source
- image source- Returns:
- the
BabelLicense
for the image source
-
-