Package org.apache.rat.license
Class ILicenseFamily.Builder
java.lang.Object
org.apache.rat.license.ILicenseFamily.Builder
- Direct Known Subclasses:
ILicenseFamilyBuilder
- Enclosing interface:
ILicenseFamily
The definition of an ILicenseFamily builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the defined license family.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
-
Builder
public Builder()
-
-
Method Details
-
setLicenseFamilyCategory
Sets the license family category. Will trim or extend 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
Gets the category that this builder is building.- Returns:
- the category that this builder is building.
-
build
Builds the defined license family.- Returns:
- a new ILicenseFamily instance.
-