Package org.apache.rat.analysis.license
Class CDDL1License
- java.lang.Object
-
- org.apache.rat.analysis.license.BaseLicense
-
- org.apache.rat.analysis.license.CDDL1License
-
- All Implemented Interfaces:
IHeaderMatcher
public class CDDL1License extends BaseLicense implements IHeaderMatcher
Base CDDL 1.0 license.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCDDL1_LICENSE_DEFNstatic java.lang.StringCDDL1_LICENSE_DEFN_ILLUMOS_STYLEprivate FullTextMatchingLicensetextMatcherBaseprivate FullTextMatchingLicensetextMatcherIllumosStyle
-
Constructor Summary
Constructors Constructor Description CDDL1License()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(Document subject, java.lang.String s)Matches the text accumulated to licenses.voidreset()Resets this matches.-
Methods inherited from class org.apache.rat.analysis.license.BaseLicense
getLicenseFamilyCategory, getLicenseFamilyName, getNotes, prune, reportOnLicense, setLicenseFamilyCategory, setLicenseFamilyName, setNotes
-
-
-
-
Field Detail
-
CDDL1_LICENSE_DEFN
public static final java.lang.String CDDL1_LICENSE_DEFN
- See Also:
- Constant Field Values
-
CDDL1_LICENSE_DEFN_ILLUMOS_STYLE
public static final java.lang.String CDDL1_LICENSE_DEFN_ILLUMOS_STYLE
- See Also:
- Constant Field Values
-
textMatcherBase
private final FullTextMatchingLicense textMatcherBase
-
textMatcherIllumosStyle
private final FullTextMatchingLicense textMatcherIllumosStyle
-
-
Method Detail
-
match
public boolean match(Document subject, java.lang.String s) throws RatHeaderAnalysisException
Description copied from interface:IHeaderMatcherMatches the text accumulated to licenses. TODO probably a poor design choice - hope to fix later- Specified by:
matchin interfaceIHeaderMatcher- Parameters:
subject- current document.s- 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:IHeaderMatcherResets this matches. Subsequent calls toIHeaderMatcher.match(org.apache.rat.api.Document, java.lang.String)will accumulate new text.- Specified by:
resetin interfaceIHeaderMatcher
-
-