Class ILicenseFamily.Builder

java.lang.Object
org.apache.rat.license.ILicenseFamily.Builder
Direct Known Subclasses:
ILicenseFamilyBuilder
Enclosing interface:
ILicenseFamily

public static class ILicenseFamily.Builder extends Object
The definition of an ILicenseFamily builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setLicenseFamilyCategory

      public ILicenseFamily.Builder setLicenseFamilyCategory(String licenseFamilyCategory)
      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

      public ILicenseFamily.Builder setLicenseFamilyName(String licenseFamilyName)
      Sets the license family name.
      Parameters:
      licenseFamilyName - the name string
      Returns:
      this builder for chaining.
    • getCategory

      public String getCategory()
      Gets the category that this builder is building.
      Returns:
      the category that this builder is building.
    • build

      public ILicenseFamily build()
      Builds the defined license family.
      Returns:
      a new ILicenseFamily instance.