public class CDDL1License extends BaseLicense implements IHeaderMatcher
Modifier and Type | Field and Description |
---|---|
static String |
CDDL1_LICENSE_DEFN |
static String |
CDDL1_LICENSE_DEFN_ILLUMOS_STYLE |
Constructor and Description |
---|
CDDL1License() |
Modifier and Type | Method and Description |
---|---|
boolean |
match(Document subject,
String s)
Matches the text accumulated to licenses.
|
void |
reset()
Resets this matches.
|
getLicenseFamilyCategory, getLicenseFamilyName, getNotes, prune, reportOnLicense, setLicenseFamilyCategory, setLicenseFamilyName, setNotes
public static final String CDDL1_LICENSE_DEFN
public static final String CDDL1_LICENSE_DEFN_ILLUMOS_STYLE
public boolean match(Document subject, String s) throws RatHeaderAnalysisException
IHeaderMatcher
match
in interface IHeaderMatcher
subject
- current document.s
- next line of text, not nullRatHeaderAnalysisException
- in case of internal RAT errors.public void reset()
IHeaderMatcher
IHeaderMatcher.match(org.apache.rat.api.Document, java.lang.String)
will accumulate new text.reset
in interface IHeaderMatcher
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.