Package org.apache.rat.analysis
Class UnknownLicense
java.lang.Object
org.apache.rat.analysis.UnknownLicense
- All Implemented Interfaces:
Comparable<ILicense>,IHeaderMatcher,ILicense
An ILicense implementation that represents an unknown license.
The UnknownLicense is used during processing to report that a document license can not be determined.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.rat.license.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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.rat.analysis.IHeaderMatcher
getDescriptionMethods inherited from interface org.apache.rat.license.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
public int hashCode() -
getLicenseFamily
Description copied from interface:ILicenseGets the license family.- Specified by:
getLicenseFamilyin interfaceILicense- Returns:
- the ILicenseFamily implementation for this license.
-
getNote
Description copied from interface:ILicenseGets the note associated with the license. -
getName
Description copied from interface:ILicenseReturns the name of this license. If no name was specified then the name of the family is returned. -
getMatcher
Description copied from interface:ILicenseGet the header matcher for this license.- Specified by:
getMatcherin interfaceILicense- Returns:
- the header matcher for this license.
-