public class SimpleLicense extends Object implements ILicense
Modifier and Type | Class and Description |
---|---|
static class |
SimpleLicense.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Description |
getDescription()
Generates the component Description.
|
String |
getFamily() |
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 line)
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.
|
String |
toString() |
public String getFamily()
public IHeaderMatcher getMatcher()
ILicense
getMatcher
in interface ILicense
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 line)
IHeaderMatcher
matches
in interface IHeaderMatcher
line
- 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 Description getDescription()
IHeaderMatcher
getDescription
in interface IHeaderMatcher
Copyright © 2006–2024 Apache Software Foundation. All rights reserved.