org.apache.rat.analysis.license
Class OASISLicense
java.lang.Object
org.apache.rat.analysis.license.BaseLicense
org.apache.rat.analysis.license.FullTextMatchingLicense
org.apache.rat.analysis.license.OASISLicense
- All Implemented Interfaces:
- IHeaderMatcher
public class OASISLicense
- extends FullTextMatchingLicense
Looks for documents contain the OASIS copyright claim plus derivative work clause.
Perhaps need to match more.
Method Summary |
boolean |
match(Document subject,
String line)
Matches the text accumulated to licenses. |
void |
reset()
Resets this matches. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OASISLicense
public OASISLicense()
match
public boolean match(Document subject,
String line)
throws RatHeaderAnalysisException
- Description copied from interface:
IHeaderMatcher
- Matches the text accumulated to licenses.
TODO probably a poor design choice - hope to fix later
- Specified by:
match
in interface IHeaderMatcher
- Overrides:
match
in class FullTextMatchingLicense
- Parameters:
subject
- current document.line
- next line of text, not null
- Returns:
- whether the current line matched in the document.
- Throws:
RatHeaderAnalysisException
- in case of internal RAT errors.
reset
public void reset()
- Description copied from interface:
IHeaderMatcher
- Resets this matches.
Subsequent calls to
IHeaderMatcher.match(org.apache.rat.api.Document, java.lang.String)
will accumulate new text.
- Specified by:
reset
in interface IHeaderMatcher
- Overrides:
reset
in class FullTextMatchingLicense
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.