public class FilesCopyrightImpl extends Object implements FilesCopyright
A FilesCopyright
implementation.
Constructor and Description |
---|
FilesCopyrightImpl()
Creates a copyright for certain files of a Debian package.
|
Modifier and Type | Method and Description |
---|---|
String |
getComment()
Returns the comment.
|
String |
getCopyright()
Returns the copyright.
|
List<String> |
getFiles()
Returns the patterns for which files the copyright applies.
|
CopyrightLicense |
getLicense()
Returns the license.
|
void |
setComment(String comment)
Sets the comment.
|
void |
setCopyright(String copyright)
Sets the copyright.
|
void |
setFiles(List<String> files)
Sets the patterns for which files the copyright applies.
|
void |
setLicense(CopyrightLicense license)
Sets the license.
|
public FilesCopyrightImpl()
Creates a copyright for certain files of a Debian package.
public List<String> getFiles()
FilesCopyright
Returns the patterns for which files the copyright applies.
getFiles
in interface FilesCopyright
public void setFiles(List<String> files)
Sets the patterns for which files the copyright applies.
files
- The patterns.public String getCopyright()
FilesCopyright
Returns the copyright.
getCopyright
in interface FilesCopyright
null
, if no copyright is set.Copyright.getCopyright()
public void setCopyright(String copyright)
Sets the copyright.
copyright
- The copyright.public CopyrightLicense getLicense()
FilesCopyright
Returns the license.
The returned license can be reference to one of the licenses returned by
the Copyright.getLicenses()
method.
getLicense
in interface FilesCopyright
null
, if no license is set.public void setLicense(CopyrightLicense license)
Sets the license.
license
- The license.public String getComment()
FilesCopyright
Returns the comment.
getComment
in interface FilesCopyright
null
, if no comment is set.Copyright.getComment()
public void setComment(String comment)
Sets the comment.
comment
- The comment.Copyright © 2015–2019. All rights reserved.