public class FullTextLicenseMatcher extends FullTextMatchingLicense
FullTextMatchingLicense
to Ant's method naming conventions so it becomes easy to write
text matching based license matchers inside an Ant build file.Constructor and Description |
---|
FullTextLicenseMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
addText(String text) |
boolean |
match(Document subject,
String line)
Matches the text accumulated to licenses.
|
void |
setProject(org.apache.tools.ant.Project project) |
hasFullText, reset, setFullText
getLicenseFamilyCategory, getLicenseFamilyName, getNotes, prune, reportOnLicense, setLicenseFamilyCategory, setLicenseFamilyName, setNotes
public void setProject(org.apache.tools.ant.Project project)
public void addText(String text)
public boolean match(Document subject, String line) throws RatHeaderAnalysisException
IHeaderMatcher
match
in interface IHeaderMatcher
match
in class FullTextMatchingLicense
subject
- current document.line
- next line of text, not nullRatHeaderAnalysisException
- in case of internal RAT errors.Copyright © 2006–2018 Apache Software Foundation. All rights reserved.