1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.rat.analysis.license;
20
21 import org.apache.rat.DeprecationReporter;
22 import org.apache.rat.license.ILicenseFamily;
23
24 @Deprecated
25 @DeprecationReporter.Info(since = "0.16", forRemoval = true, use = "new configuration options")
26 public abstract class BaseLicense implements DeprecatedConfig {
27 private String licenseFamilyCategory;
28 private String licenseFamilyName;
29 private String notes;
30
31 public BaseLicense() {
32 DeprecationReporter.logDeprecated(BaseLicense.class);
33 }
34
35 public String getLicenseFamilyCategory() {
36 return licenseFamilyCategory;
37 }
38
39 public void setLicenseFamilyCategory(String pDocumentCategory) {
40 licenseFamilyCategory = pDocumentCategory;
41 }
42
43 public String getLicenseFamilyName() {
44 return licenseFamilyName;
45 }
46
47 public void setLicenseFamilyName(String pLicenseFamilyCategory) {
48 licenseFamilyName = pLicenseFamilyCategory;
49 }
50
51 public String getNotes() {
52 return notes;
53 }
54
55 public void setNotes(String pNotes) {
56 notes = pNotes;
57 }
58
59 @Override
60 final public ILicenseFamily getLicenseFamily() {
61 return ILicenseFamily.builder()
62 .setLicenseFamilyCategory(licenseFamilyCategory)
63 .setLicenseFamilyName(licenseFamilyName)
64 .build();
65 }
66 }