Package org.apache.rat.license
Interface ILicenseFamily
- All Superinterfaces:
Comparable<ILicenseFamily>
The definition of the license family.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe definition of an ILicenseFamily builder. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ILicenseFamily.Builderbuilder()Gets the Builder for license families.default intcompareTo(ILicenseFamily other)Gets the family category.Gets the family name.static StringmakeCategory(String cat)Convert a potential category string into a category string of exactly 5 characters either by truncating the string or appending spaces as necessary.
-
Field Details
-
UNKNOWN
The license family for unknown licenses
-
-
Method Details
-
getFamilyName
String getFamilyName()Gets the family name.- Returns:
- the license family name.
-
getFamilyCategory
String getFamilyCategory()Gets the family category.- Returns:
- the license family category.
-
builder
Gets the Builder for license families.- Returns:
- A builder for an ILicenseFamily.
-
makeCategory
Convert a potential category string into a category string of exactly 5 characters either by truncating the string or appending spaces as necessary.- Parameters:
cat- the string to convert.- Returns:
- a string of exactly 5 characters.
-
compareTo
- Specified by:
compareToin interfaceComparable<ILicenseFamily>
-