Package it.uniroma1.lcl.babelnet.data
Enum BabelLicense
- java.lang.Object
-
- java.lang.Enum<BabelLicense>
-
- it.uniroma1.lcl.babelnet.data.BabelLicense
-
- All Implemented Interfaces:
Serializable
,Comparable<BabelLicense>
public enum BabelLicense extends Enum<BabelLicense>
License information for a BabelNet item.- Author:
- navigli, vannella
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APACHE_20
Apache 2.0 LicenseBABELNET_NC
BabelNet NonCommercial licenseCC_BY_30
Creative Commons Attribution 3.0 LicenseCC_BY_40
Creative Commons Attribution 4.0 LicenseCC_BY_NC_SA_30
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported LicenseCC_BY_NC_SA_40
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Unported LicenseCC_BY_SA_30
Creative Commons Attribution-ShareAlike 3.0 LicenseCC_BY_SA_40
Creative Commons Attribution-ShareAlike 4.0 InternationalCC0_10
CC0 1.0 UniversalCECILL_C
CeCILL-C free software license agreementCOMMERCIAL
Babelscape commercial licenseGFDL_12
GFDL 1.2 licenseMIT
MIT licenseMLP
Microsoft language portal materials licenseODC_BY_10
ODC-BY 1.0 licenseOTHER
Items without specific licenses.UNRESTRICTED
All the permissive licenses without specific restrictionsWORDNET
WordNet license
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Optional<BabelLicense>
getLongName(String stringName)
Deprecated.For removal in the next releaseString
getShortName()
Returns the short name for this licenseString
getURI()
Returns a URI associated with this licensestatic BabelLicense
valueOf(String name)
Returns the enum constant of this type with the specified name.static BabelLicense[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNRESTRICTED
public static final BabelLicense UNRESTRICTED
All the permissive licenses without specific restrictions
-
CC_BY_SA_30
public static final BabelLicense CC_BY_SA_30
Creative Commons Attribution-ShareAlike 3.0 License
-
CC_BY_SA_40
public static final BabelLicense CC_BY_SA_40
Creative Commons Attribution-ShareAlike 4.0 International
-
CC_BY_30
public static final BabelLicense CC_BY_30
Creative Commons Attribution 3.0 License
-
CECILL_C
public static final BabelLicense CECILL_C
CeCILL-C free software license agreement
-
APACHE_20
public static final BabelLicense APACHE_20
Apache 2.0 License
-
CC_BY_NC_SA_30
public static final BabelLicense CC_BY_NC_SA_30
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
-
MLP
public static final BabelLicense MLP
Microsoft language portal materials license
-
OTHER
public static final BabelLicense OTHER
Items without specific licenses.
-
WORDNET
public static final BabelLicense WORDNET
WordNet license- See Also:
-
-
MIT
public static final BabelLicense MIT
MIT license- See Also:
-
-
ODC_BY_10
public static final BabelLicense ODC_BY_10
ODC-BY 1.0 license- See Also:
-
-
GFDL_12
public static final BabelLicense GFDL_12
GFDL 1.2 license- See Also:
-
-
BABELNET_NC
public static final BabelLicense BABELNET_NC
BabelNet NonCommercial license- See Also:
-
-
CC_BY_NC_SA_40
public static final BabelLicense CC_BY_NC_SA_40
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Unported License
-
CC_BY_40
public static final BabelLicense CC_BY_40
Creative Commons Attribution 4.0 License
-
COMMERCIAL
public static final BabelLicense COMMERCIAL
Babelscape commercial license
-
CC0_10
public static final BabelLicense CC0_10
CC0 1.0 Universal
-
-
-
-
-
-
-
Method Detail
-
values
public static BabelLicense[] 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 (BabelLicense c : BabelLicense.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BabelLicense 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
-
getShortName
public String getShortName()
Returns the short name for this license- Returns:
- the short name for this license
-
getURI
public String getURI()
Returns a URI associated with this license- Returns:
- license URI
-
getLongName
@Deprecated public static Optional<BabelLicense> getLongName(String stringName)
Deprecated.For removal in the next releaseReturns the BabelLicence for a given string- Parameters:
stringName
- the license string- Returns:
- the corresponding license
-
-