rat.analysis
Interface IHeaderMatcher

All Known Implementing Classes:
ApacheSoftwareLicense20, DojoLicenseHeader, GeneratedLicenseNotRequired, HeaderMatcherMultiplexer, JavaDocLicenseNotRequired, OASISLicense, W3CDocLicense, W3CLicense

public interface IHeaderMatcher

Matches text headers to known licenses.


Method Summary
 boolean match(String subject, String line, IClaimReporter reporter)
          Matches the text accumulated to licenses.
 void reset()
          Resets this matches.
 

Method Detail

reset

void reset()
Resets this matches. Subsequent calls to match(java.lang.String, java.lang.String, rat.report.claim.IClaimReporter) will accumulate new text.


match

boolean match(String subject,
              String line,
              IClaimReporter reporter)
              throws RatHeaderAnalysisException
Matches the text accumulated to licenses. TODO probably a poor design choice - hope to fix later

Parameters:
subject - TODO
line - next line of text, not null
reporter - TODO
Returns:
TODO
Throws:
RatHeaderAnalysisException


Copyright © 2006-2011. All Rights Reserved.