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.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
fullText |
private org.apache.tools.ant.Project |
project |
private boolean |
validated |
| Constructor and Description |
|---|
FullTextLicenseMatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addText(java.lang.String text) |
boolean |
match(Document subject,
java.lang.String line)
Matches the text accumulated to licenses.
|
void |
setProject(org.apache.tools.ant.Project project) |
private void |
validate() |
hasFullText, reset, setFullTextgetLicenseFamilyCategory, getLicenseFamilyName, getNotes, prune, reportOnLicense, setLicenseFamilyCategory, setLicenseFamilyName, setNotesprivate boolean validated
private java.lang.String fullText
private org.apache.tools.ant.Project project
public void setProject(org.apache.tools.ant.Project project)
public void addText(java.lang.String text)
public boolean match(Document subject, java.lang.String line) throws RatHeaderAnalysisException
IHeaderMatchermatch in interface IHeaderMatchermatch in class FullTextMatchingLicensesubject - current document.line - next line of text, not nullRatHeaderAnalysisException - in case of internal RAT errors.private void validate()