public class AppliedApacheSoftwareLicense20 extends CopyrightHeader
Modifier and Type | Field and Description |
---|---|
static String |
ASL20_LICENSE_DEFN |
COPYRIGHT_PREFIX_PATTERN_DEFN
Constructor and Description |
---|
AppliedApacheSoftwareLicense20() |
AppliedApacheSoftwareLicense20(String copyrightOwner) |
Modifier and Type | Method and Description |
---|---|
boolean |
match(Document subject,
String s)
Matches the text accumulated to licenses.
|
void |
reset()
Resets this matches.
|
getCopyRightOwner, hasCopyrightPattern, isCopyrightMatch, matchCopyright, setCopyrightOwner
getLicenseFamilyCategory, getLicenseFamilyName, getNotes, prune, reportOnLicense, setLicenseFamilyCategory, setLicenseFamilyName, setNotes
public static final String ASL20_LICENSE_DEFN
public AppliedApacheSoftwareLicense20()
public AppliedApacheSoftwareLicense20(String copyrightOwner)
public boolean match(Document subject, String s) throws RatHeaderAnalysisException
IHeaderMatcher
match
in interface IHeaderMatcher
match
in class CopyrightHeader
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
reset
in class CopyrightHeader
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.