public class AppliedApacheSoftwareLicense20 extends CopyrightHeader
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASL20_LICENSE_DEFN |
private FullTextMatchingLicense |
textMatcher |
COPYRIGHT_PREFIX_PATTERN_DEFN| Constructor and Description |
|---|
AppliedApacheSoftwareLicense20() |
AppliedApacheSoftwareLicense20(java.lang.String copyrightOwner) |
| 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.
|
getCopyRightOwner, hasCopyrightPattern, isCopyrightMatch, matchCopyright, setCopyrightOwnergetLicenseFamilyCategory, getLicenseFamilyName, getNotes, prune, reportOnLicense, setLicenseFamilyCategory, setLicenseFamilyName, setNotespublic static final java.lang.String ASL20_LICENSE_DEFN
private final FullTextMatchingLicense textMatcher
public AppliedApacheSoftwareLicense20()
public AppliedApacheSoftwareLicense20(java.lang.String copyrightOwner)
public boolean match(Document subject, java.lang.String s) throws RatHeaderAnalysisException
IHeaderMatchermatch in interface IHeaderMatchermatch in class CopyrightHeadersubject - 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 IHeaderMatcherreset in class CopyrightHeader