public final class UnknownLicense extends Object implements ILicense
The UnknownLicense is used during processing to report that a document license can not be determined.
ILicense.Builder
Modifier and Type | Field and Description |
---|---|
static UnknownLicense |
INSTANCE
The single instance of this class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getId()
Get the identifier for this matcher.
|
ILicenseFamily |
getLicenseFamily()
Gets the license family.
|
IHeaderMatcher |
getMatcher()
Get the header matcher for this license.
|
String |
getName()
Returns the name of this license.
|
String |
getNote()
Gets the note associated with the license.
|
int |
hashCode() |
boolean |
matches(IHeaders headers)
Attempts to match text in the IHeaders instance.
|
void |
reset()
Resets this state of this matcher to its initial state in preparation for
use with another document scan.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder, compareTo, equals, getFamilyName, hash
getDescription
public static final UnknownLicense INSTANCE
public String getId()
IHeaderMatcher
All matchers must have unique identifiers
getId
in interface IHeaderMatcher
public void reset()
IHeaderMatcher
reset
in interface IHeaderMatcher
public boolean matches(IHeaders headers)
IHeaderMatcher
matches
in interface IHeaderMatcher
headers
- the representations of the headers to checktrue
if the matcher matches the text, false
otherwise.public ILicenseFamily getLicenseFamily()
ILicense
getLicenseFamily
in interface ILicense
public String getNote()
ILicense
public String getName()
ILicense
public IHeaderMatcher getMatcher()
ILicense
getMatcher
in interface ILicense
Copyright © 2006–2024 Apache Software Foundation. All rights reserved.