Class UnknownLicense
java.lang.Object
org.apache.rat.analysis.UnknownLicense
- All Implemented Interfaces:
Comparable<ILicense>, IHeaderMatcher, ILicense
-
Nested Class Summary
Nested classes/interfaces inherited from interface ILicense
ILicense.Builder -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Get the identifier for this matcher.Gets the license family.Get the header matcher for this license.getName()Returns the name of this license.getNote()Gets the note associated with the license.inthashCode()booleanAttempts to match text in the IHeaders instance.voidreset()Resets this state of this matcher to its initial state in preparation for use with another document scan.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IHeaderMatcher
getDescriptionMethods inherited from interface ILicense
compareTo, getFamilyName
-
Field Details
-
INSTANCE
The single instance of this class.
-
-
Method Details
-
getId
Description copied from interface:IHeaderMatcherGet the identifier for this matcher.All matchers must have unique identifiers
- Specified by:
getIdin interfaceIHeaderMatcher- Returns:
- the identifier for this matcher.
-
reset
public void reset()Description copied from interface:IHeaderMatcherResets this state of this matcher to its initial state in preparation for use with another document scan. In most cases this method does not need to do anything.- Specified by:
resetin interfaceIHeaderMatcher
-
matches
Description copied from interface:IHeaderMatcherAttempts to match text in the IHeaders instance.- Specified by:
matchesin interfaceIHeaderMatcher- Parameters:
headers- the representations of the headers to check- Returns:
trueif the matcher matches the text,falseotherwise.
-
equals
-
hashCode
-
getLicenseFamily
Description copied from interface:ILicenseGets the license family.- Specified by:
getLicenseFamilyin interfaceILicense- Returns:
- the ILicenseFamily implementation for this license.
-
getNote
-
getName
-
getMatcher
Description copied from interface:ILicenseGet the header matcher for this license.- Specified by:
getMatcherin interfaceILicense- Returns:
- the header matcher for this license.
-