Enum LicenseClassifier.LicenseMatch
java.lang.Object
java.lang.Enum<LicenseClassifier.LicenseMatch>
org.codehaus.mojo.license.download.LicenseClassifier.LicenseMatch
- All Implemented Interfaces:
Serializable, Comparable<LicenseClassifier.LicenseMatch>
- Enclosing class:
LicenseClassifier
How a license compares against the configured lists, from the most to the least worrying. The order of the
constants is the order dependencies appear in when ordered by license match.
- Since:
- 2.8.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe license is listed inforbiddenLicenses.The license is listed inokLicenses.The license is listed inproblematicLicenses.The license is in none of the lists, or the dependency declares no license at all. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static LicenseClassifier.LicenseMatch[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
forbidden
The license is listed inforbiddenLicenses. -
problematic
The license is listed inproblematicLicenses. -
ok
The license is listed inokLicenses. -
unknown
The license is in none of the lists, or the dependency declares no license at all.
-
-
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
-