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
RatHeaderAnalysisExceptionprotected boolean matches(String pLine)
public void reset()
IHeaderMatcherIHeaderMatcher.match(org.apache.rat.api.Document, java.lang.String) will accumulate new text.reset in interface IHeaderMatcherpublic boolean match(Document pSubject, String pLine) throws RatHeaderAnalysisException
IHeaderMatchermatch in interface IHeaderMatcherpSubject - TODOpLine - next line of text, not nullRatHeaderAnalysisExceptionCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.