rat.analysis.license
Class ApacheSoftwareLicense20
java.lang.Object
rat.analysis.license.BaseLicense
rat.analysis.license.ApacheSoftwareLicense20
- All Implemented Interfaces:
- IHeaderMatcher
public final class ApacheSoftwareLicense20
- extends BaseLicense
- implements IHeaderMatcher
Matches Apache Software License, Version 2.0
Method Summary |
boolean |
match(java.lang.String subject,
java.lang.String line,
IClaimReporter reporter)
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 |
FIRST_LICENSE_LINE
public static final java.lang.String FIRST_LICENSE_LINE
- See Also:
- Constant Field Values
LICENSE_REFERENCE_LINE
public static final java.lang.String LICENSE_REFERENCE_LINE
- See Also:
- Constant Field Values
ApacheSoftwareLicense20
public ApacheSoftwareLicense20()
match
public boolean match(java.lang.String subject,
java.lang.String line,
IClaimReporter reporter)
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
- Parameters:
subject
- TODOline
- next line of text, not nullreporter
- TODO
- Returns:
- TODO
- Throws:
RatHeaderAnalysisException
reset
public void reset()
- Description copied from interface:
IHeaderMatcher
- Resets this matches.
Subsequent calls to
IHeaderMatcher.match(java.lang.String, java.lang.String, rat.report.claim.IClaimReporter)
will accumulate new text.
- Specified by:
reset
in interface IHeaderMatcher
Copyright © 2006-2010. All Rights Reserved.