public class SimplePatternBasedLicense extends Object implements IHeaderMatcher
Modifier | Constructor and Description |
---|---|
|
SimplePatternBasedLicense() |
protected |
SimplePatternBasedLicense(MetaData.Datum pLicenseFamilyCategory,
MetaData.Datum pLicenseFamilyName,
String pNotes,
String[] pPatterns) |
Modifier and Type | Method and Description |
---|---|
String |
getLicenseFamilyCategory() |
String |
getLicenseFamilyName() |
String |
getNotes() |
String[] |
getPatterns() |
boolean |
match(Document pSubject,
String pLine)
Matches the text accumulated to licenses.
|
protected boolean |
matches(String pLine) |
protected void |
reportOnLicense(Document subject) |
void |
reset()
Resets this matches.
|
void |
setLicenseFamilyCategory(String pDocumentCategory) |
void |
setLicenseFamilyName(String pLicenseFamilyCategory) |
void |
setNotes(String pNotes) |
void |
setPatterns(String[] pPatterns) |
public SimplePatternBasedLicense()
protected SimplePatternBasedLicense(MetaData.Datum pLicenseFamilyCategory, MetaData.Datum pLicenseFamilyName, String pNotes, String[] pPatterns)
public String[] getPatterns()
public void setPatterns(String[] pPatterns)
public String getLicenseFamilyCategory()
public void setLicenseFamilyCategory(String pDocumentCategory)
public String getLicenseFamilyName()
public void setLicenseFamilyName(String pLicenseFamilyCategory)
public String getNotes()
public void setNotes(String pNotes)
protected void reportOnLicense(Document subject) throws RatHeaderAnalysisException
RatHeaderAnalysisException
protected boolean matches(String pLine)
public void reset()
IHeaderMatcher
IHeaderMatcher.match(org.apache.rat.api.Document, java.lang.String)
will accumulate new text.reset
in interface IHeaderMatcher
public boolean match(Document pSubject, String pLine) throws RatHeaderAnalysisException
IHeaderMatcher
match
in interface IHeaderMatcher
pSubject
- TODOpLine
- next line of text, not nullRatHeaderAnalysisException
Copyright © 2006-2021 The Apache Software Foundation. All Rights Reserved.