Package org.apache.rat.license
Interface ILicenseFamily.Builder
- All Known Implementing Classes:
ILicenseFamilyBuilder
- Enclosing interface:
- ILicenseFamily
public static interface ILicenseFamily.Builder
The definition of an ILicenseFamily builder.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Gets the category that this builder is building.setLicenseFamilyCategory(String licenseFamilyCategory)
Sets the license family category.setLicenseFamilyName(String licenseFamilyName)
Sets the license family name.
-
Method Details
-
setLicenseFamilyCategory
Sets the license family category. Will trim or extends the string with spaces to ensure that it is exactly 5 characters.- Parameters:
licenseFamilyCategory
- the category string- Returns:
- this builder for chaining.
-
setLicenseFamilyName
Sets the license family name.- Parameters:
licenseFamilyName
- the name string- Returns:
- this builder for chaining.
-
getCategory
String getCategory()Gets the category that this builder is building.- Returns:
- the category that this builder is building.
-
build
ILicenseFamily build()- Returns:
- a new ILicenseFamily instance.
-