Package org.apache.rat.license
Class ILicenseFamilyBuilder
java.lang.Object
org.apache.rat.license.ILicenseFamilyBuilder
- All Implemented Interfaces:
ILicenseFamily.Builder
An instance of the ILicenseFamily Builder.
-
Constructor Summary
-
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.
-
Constructor Details
-
ILicenseFamilyBuilder
public ILicenseFamilyBuilder()
-
-
Method Details
-
setLicenseFamilyCategory
Description copied from interface:ILicenseFamily.Builder
Sets the license family category. Will trim or extends the string with spaces to ensure that it is exactly 5 characters.- Specified by:
setLicenseFamilyCategory
in interfaceILicenseFamily.Builder
- Parameters:
licenseFamilyCategory
- the category string- Returns:
- this builder for chaining.
-
getCategory
Description copied from interface:ILicenseFamily.Builder
Gets the category that this builder is building.- Specified by:
getCategory
in interfaceILicenseFamily.Builder
- Returns:
- the category that this builder is building.
-
setLicenseFamilyName
Description copied from interface:ILicenseFamily.Builder
Sets the license family name.- Specified by:
setLicenseFamilyName
in interfaceILicenseFamily.Builder
- Parameters:
licenseFamilyName
- the name string- Returns:
- this builder for chaining.
-
build
- Specified by:
build
in interfaceILicenseFamily.Builder
- Returns:
- a new ILicenseFamily instance.
-