public class CDDL1License extends BaseLicense implements IHeaderMatcher
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CDDL1_LICENSE_DEFN |
static java.lang.String |
CDDL1_LICENSE_DEFN_ILLUMOS_STYLE |
private FullTextMatchingLicense |
textMatcherBase |
private FullTextMatchingLicense |
textMatcherIllumosStyle |
| Constructor and Description |
|---|
CDDL1License() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(Document subject,
java.lang.String s)
Matches the text accumulated to licenses.
|
void |
reset()
Resets this matches.
|
getLicenseFamilyCategory, getLicenseFamilyName, getNotes, prune, reportOnLicense, setLicenseFamilyCategory, setLicenseFamilyName, setNotespublic static final java.lang.String CDDL1_LICENSE_DEFN
public static final java.lang.String CDDL1_LICENSE_DEFN_ILLUMOS_STYLE
private final FullTextMatchingLicense textMatcherBase
private final FullTextMatchingLicense textMatcherIllumosStyle
public boolean match(Document subject, java.lang.String s) throws RatHeaderAnalysisException
IHeaderMatchermatch in interface IHeaderMatchersubject - current document.s - next line of text, not nullRatHeaderAnalysisException - in case of internal RAT errors.public void reset()
IHeaderMatcherIHeaderMatcher.match(org.apache.rat.api.Document, java.lang.String) will accumulate new text.reset in interface IHeaderMatcher