Constructor and Description |
---|
CopyrightImpl()
Creates a copyright.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilesCopyright(FilesCopyright filesCopyright)
Adds the copyright for certain files of a Debian package.
|
void |
addLicense(CopyrightLicense license)
Adds a license to the licenses.
|
String |
getComment()
Returns the comment.
|
String |
getCopyright()
Returns the copyright.
|
String |
getDisclaimer()
Returns the disclaimer.
|
List<FilesCopyright> |
getFilesCopyrights()
Returns the copyrights for certain files of a Debian package.
|
String |
getFormat()
Returns the format of the copyright.
|
CopyrightLicense |
getLicense()
Returns the license.
|
Map<String,CopyrightLicense> |
getLicenses()
Returns the licenses referred by this copyright or one of copyrights for
certain files.
|
String |
getSource()
Returns the source.
|
String |
getUpstreamContact()
Returns the upstream contact.
|
String |
getUpstreamName()
Returns the name upstream uses for the software.
|
void |
setComment(String comment)
Sets the comment.
|
void |
setCopyright(String copyright)
Sets the copyright.
|
void |
setDisclaimer(String disclaimer)
Sets the disclaimer.
|
void |
setFilesCopyrights(List<FilesCopyright> filesCopyrights)
Sets the copyrights for certain files of a Debian package.
|
void |
setFormat(String format)
Sets the format of the copyright.
|
void |
setLicense(CopyrightLicense license)
Sets the license.
|
void |
setLicenses(Map<String,CopyrightLicense> licenses)
Sets the licenses.
|
void |
setSource(String source)
Sets the source.
|
void |
setUpstreamContact(String upstreamContact)
Sets the upstream contact.
|
void |
setUpstreamName(String upstreamName)
Sets the name upstream uses for the software.
|
public String getFormat()
Copyright
Returns the format of the copyright.
A format is specified by an URI of the format specification.
Example:
http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
public void setFormat(String format)
Sets the format of the copyright.
format
- The format.public String getUpstreamName()
Copyright
Returns the name upstream uses for the software.
Example:
SOFTware
getUpstreamName
in interface Copyright
null
, if no name is set.public void setUpstreamName(String upstreamName)
Sets the name upstream uses for the software.
upstreamName
- The name.public String getUpstreamContact()
Copyright
Returns the upstream contact.
The preferred address(es) to reach the upstream project. May be free-form text, but by convention will usually be written as a list of RFC5322 addresses or URIs.
Example:
John Doe <john.doe@example.com>
getUpstreamContact
in interface Copyright
null
, if no contact is set.public void setUpstreamContact(String upstreamContact)
Sets the upstream contact.
upstreamContact
- The contact.public String getSource()
Copyright
Returns the source.
Formatted text, no synopsis: an explanation of where the upstream source came from. Typically this would be a URL, but it might be a free-form explanation.
Example:
http://www.example.com/software/project
public void setSource(String source)
Sets the source.
source
- The source.public String getDisclaimer()
Copyright
Returns the disclaimer.
Formatted text, no synopsis: this field is used for non-free or contrib packages to state that they are not part of Debian and to explain why.
getDisclaimer
in interface Copyright
null
, if no disclaimer is set.public void setDisclaimer(String disclaimer)
Sets the disclaimer.
disclaimer
- The disclaimer.public String getComment()
Copyright
Returns the comment.
Formatted text, no synopsis: this field can provide additional information. For example, it might quote an e-mail from upstream justifying why the license is acceptable to the main archive, or an explanation of how this version of the package has been forked from a version known to be DFSG-free, even though the current upstream version is not.
getComment
in interface Copyright
null
, if no comment is set.public void setComment(String comment)
Sets the comment.
comment
- The comment.public CopyrightLicense getLicense()
Copyright
Returns the license.
The returned license can be reference to one of the licenses returned by
the Copyright.getLicenses()
method.
getLicense
in interface Copyright
null
, if no license is set.public void setLicense(CopyrightLicense license)
Sets the license.
license
- The license.public String getCopyright()
Copyright
Returns the copyright.
Example:
Copyright 2008 John Smith
Copyright 2009 Angela Watts
getCopyright
in interface Copyright
null
, if no copyright is set.public void setCopyright(String copyright)
Sets the copyright.
copyright
- The copyright.public List<FilesCopyright> getFilesCopyrights()
Copyright
Returns the copyrights for certain files of a Debian package.
getFilesCopyrights
in interface Copyright
public void setFilesCopyrights(List<FilesCopyright> filesCopyrights)
Sets the copyrights for certain files of a Debian package.
filesCopyrights
- The copyrights.public void addFilesCopyright(FilesCopyright filesCopyright)
Adds the copyright for certain files of a Debian package.
filesCopyright
- The copyright.IllegalArgumentException
- If the copyright is null
.public Map<String,CopyrightLicense> getLicenses()
Copyright
Returns the licenses referred by this copyright or one of copyrights for certain files.
getLicenses
in interface Copyright
Copyright.getLicense()
,
Copyright.getFilesCopyrights()
,
FilesCopyright.getLicense()
public void setLicenses(Map<String,CopyrightLicense> licenses)
Sets the licenses.
licenses
- The licenses.public void addLicense(CopyrightLicense license)
Adds a license to the licenses.
If a license with the same name already exists, then it will be replaced.
license
- The license.setLicenses(Map)
Copyright © 2015–2019. All rights reserved.