Package org.apache.rat.license
Interface ILicenseFamily
- All Superinterfaces:
Comparable<ILicenseFamily>
The definition of the license family.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
The definition of an ILicenseFamily builder. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ILicenseFamily
The license family for unknown licenses -
Method Summary
Modifier and TypeMethodDescriptionstatic ILicenseFamily.Builder
builder()
Gets the Builder for license families.default int
compareTo
(ILicenseFamily other) Gets the family category.Gets the family name.static String
makeCategory
(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:
compareTo
in interfaceComparable<ILicenseFamily>
-