public class License extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
comments
Addendum information pertaining to this license.
|
private InputLocation |
commentsLocation
Field commentsLocation.
|
private java.lang.String |
distribution
The primary method by which this project may be
distributed.
|
private InputLocation |
distributionLocation
Field distributionLocation.
|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
private java.lang.String |
name
The full legal name of the license.
|
private InputLocation |
nameLocation
Field nameLocation.
|
private java.lang.String |
url
The official url for the license text.
|
private InputLocation |
urlLocation
Field urlLocation.
|
Constructor and Description |
---|
License() |
Modifier and Type | Method and Description |
---|---|
License |
clone()
Method clone.
|
java.lang.String |
getComments()
Get addendum information pertaining to this license.
|
java.lang.String |
getDistribution()
Get the primary method by which this project may be
distributed.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
java.lang.String |
getName()
Get the full legal name of the license.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
java.lang.String |
getUrl()
Get the official url for the license text.
|
void |
setComments(java.lang.String comments)
Set addendum information pertaining to this license.
|
void |
setDistribution(java.lang.String distribution)
Set the primary method by which this project may be
distributed.
|
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setName(java.lang.String name)
Set the full legal name of the license.
|
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
void |
setUrl(java.lang.String url)
Set the official url for the license text.
|
private java.lang.String name
private java.lang.String url
private java.lang.String distribution
private java.lang.String comments
private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation nameLocation
private InputLocation urlLocation
private InputLocation distributionLocation
private InputLocation commentsLocation
public License clone()
clone
in class java.lang.Object
public java.lang.String getComments()
public java.lang.String getDistribution()
public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- a key object.public java.lang.String getName()
public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- a key object.location
- a location object.public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- a key object.location
- a location object.private InputLocation getOtherLocation(java.lang.Object key)
key
- a key object.public java.lang.String getUrl()
public void setComments(java.lang.String comments)
comments
- a comments object.public void setDistribution(java.lang.String distribution)
distribution
- a distribution object.public void setName(java.lang.String name)
name
- a name object.public void setUrl(java.lang.String url)
url
- a url object.