public class KnownLicense extends Object implements Serializable
Constructor and Description |
---|
KnownLicense() |
KnownLicense(String name,
URL url,
boolean valid,
Set<String> aliases,
Set<String> approvedDependencies) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<String> |
getAliases()
|
Set<String> |
getApprovedDependencies()
Returns the
approvedDependencies Set . |
String |
getName()
This method returns the license name.
|
URL |
getUrl()
Returns the URL to the license text.
|
int |
hashCode() |
boolean |
isValid()
Set returns the
valid flag. |
void |
setAliases(Set<String> aliases)
|
void |
setApprovedDependencies(Set<String> approvedDependencies)
Sets a new
approvedDependencies Set . |
void |
setName(String name)
This method sets the license's name.
|
void |
setUrl(URL url)
This method sets a URL to the full license text.
|
void |
setValid(boolean valid) |
String |
toString() |
public void setName(String name)
name
- is set to name
.public String getName()
public void setUrl(URL url)
url
- is the URL to be set to url
.public boolean isValid()
valid
flag.true
is returned if the license is valid.
false
is returned otherwise.public void setValid(boolean valid)
public Set<String> getApprovedDependencies()
approvedDependencies
Set
.public void setApprovedDependencies(Set<String> approvedDependencies)
approvedDependencies
Set
.Copyright © 2013–2015 PureSol Technologies. All rights reserved.