public class DebianPackageImpl extends Object implements DebianPackage
A DebianPackage
implementation.
Constructor and Description |
---|
DebianPackageImpl()
Creates a Debian package.
|
Modifier and Type | Method and Description |
---|---|
ChangeLog |
getChangeLog()
Returns the change log of this package.
|
Script |
getConfig()
Returns the script for the configuration of the package.
|
ConfigFiles |
getConfigFiles()
Returns the configuration files which are managed by this package.
|
Control |
getControl()
Returns the control of the package.
|
Copyright |
getCopyright()
Returns the copyright of this package.
|
String |
getFileFormatVersion()
Returns the version of the file format.
|
MD5Sums |
getMD5Sums()
Returns the MD5 sums.
|
Script |
getPostInstall()
Returns the script which will be executed after the package is installed.
|
Script |
getPostRemove()
Returns the script which will be executed after the package is removed.
|
Script |
getPreInstall()
Returns the script which will be executed before the package is
installed.
|
Script |
getPreRemove()
Returns the script which will be executed before the package is removed.
|
SharedLibraries |
getSharedLibraries()
Returns the shared libraries of this package.
|
Symbols |
getSymbols()
Returns the symbols of the shared libraries of this package.
|
Templates |
getTemplates()
Returns the templates for asking the user questions about the
configuration.
|
void |
setChangeLog(ChangeLog changeLog)
Sets the change log of this package.
|
void |
setConfig(Script config)
Sets the script for the configuration of the package.
|
void |
setConfigFiles(ConfigFiles configFiles)
Sets the configuration files which are managed by this package.
|
void |
setControl(Control control)
Sets the control of the package.
|
void |
setCopyright(Copyright copyright)
Sets the copyright of this package.
|
void |
setFileFormatVersion(String fileFormatVersion)
Sets the version of the file format.
|
void |
setMD5Sums(MD5Sums md5Sums)
Sets the MD5 sums.
|
void |
setPostInstall(Script postInstall)
Sets the script which will be executed after the package is installed.
|
void |
setPostRemove(Script postRemove)
Sets the script which will be executed after the package is removed.
|
void |
setPreInstall(Script preInstall)
Sets the script which will be executed before the package is installed.
|
void |
setPreRemove(Script preRemove)
Sets the script which will be executed after the package is installed.
|
void |
setSharedLibraries(SharedLibraries sharedLibraries)
Sets the shared libraries of this package.
|
void |
setSymbols(Symbols symbols)
Sets the symbols of the shared libraries of this package.
|
void |
setTemplates(Templates templates)
Sets the templates for asking the user questions about the configuration.
|
public String getFileFormatVersion()
DebianPackage
Returns the version of the file format.
In most cases this should be "2.0"
getFileFormatVersion
in interface DebianPackage
public void setFileFormatVersion(String fileFormatVersion)
Sets the version of the file format.
In most cases this should be "2.0"
fileFormatVersion
- The version.public Control getControl()
DebianPackage
Returns the control of the package.
getControl
in interface DebianPackage
public void setControl(Control control)
Sets the control of the package.
control
- The control.public MD5Sums getMD5Sums()
DebianPackage
Returns the MD5 sums.
getMD5Sums
in interface DebianPackage
null
, if the Debian package doesn't
contain the MD5 sums.public void setMD5Sums(MD5Sums md5Sums)
Sets the MD5 sums.
md5Sums
- The MD5 sums.public Script getPreInstall()
DebianPackage
Returns the script which will be executed before the package is installed.
getPreInstall
in interface DebianPackage
null
, if the script doesn't exist.public void setPreInstall(Script preInstall)
Sets the script which will be executed before the package is installed.
preInstall
- The script.public Script getPostInstall()
DebianPackage
Returns the script which will be executed after the package is installed.
getPostInstall
in interface DebianPackage
null
, if the script doesn't exist.public void setPostInstall(Script postInstall)
Sets the script which will be executed after the package is installed.
postInstall
- The script.public Script getPreRemove()
DebianPackage
Returns the script which will be executed before the package is removed.
getPreRemove
in interface DebianPackage
null
, if the script doesn't exist.public void setPreRemove(Script preRemove)
Sets the script which will be executed after the package is installed.
preRemove
- The script.public Script getPostRemove()
DebianPackage
Returns the script which will be executed after the package is removed.
getPostRemove
in interface DebianPackage
null
, if the script doesn't exist.public void setPostRemove(Script postRemove)
Sets the script which will be executed after the package is removed.
postRemove
- The script.public Templates getTemplates()
DebianPackage
Returns the templates for asking the user questions about the configuration.
getTemplates
in interface DebianPackage
null
, if no templates exist.DebianPackage.getConfig()
public void setTemplates(Templates templates)
Sets the templates for asking the user questions about the configuration.
templates
- The templates.setConfig(Script)
public Script getConfig()
DebianPackage
Returns the script for the configuration of the package.
getConfig
in interface DebianPackage
null
, if the script doesn't exist.DebianPackage.getTemplates()
public void setConfig(Script config)
Sets the script for the configuration of the package.
config
- The script.setTemplates(Templates)
public ConfigFiles getConfigFiles()
DebianPackage
Returns the configuration files which are managed by this package.
getConfigFiles
in interface DebianPackage
null
, if no configuration
files are specified.public void setConfigFiles(ConfigFiles configFiles)
Sets the configuration files which are managed by this package.
configFiles
- The configuration files.public SharedLibraries getSharedLibraries()
DebianPackage
Returns the shared libraries of this package.
getSharedLibraries
in interface DebianPackage
null
, if no shared libraries
are specified.public void setSharedLibraries(SharedLibraries sharedLibraries)
Sets the shared libraries of this package.
sharedLibraries
- The shared libraries.public Symbols getSymbols()
DebianPackage
Returns the symbols of the shared libraries of this package.
getSymbols
in interface DebianPackage
null
, if no symbols are specified.public void setSymbols(Symbols symbols)
Sets the symbols of the shared libraries of this package.
symbols
- The symbols.public Copyright getCopyright()
DebianPackage
Returns the copyright of this package.
getCopyright
in interface DebianPackage
null
, if no copyright is specified.public void setCopyright(Copyright copyright)
Sets the copyright of this package.
copyright
- The copyright.public ChangeLog getChangeLog()
DebianPackage
Returns the change log of this package.
getChangeLog
in interface DebianPackage
null
, if no change log is
specified.public void setChangeLog(ChangeLog changeLog)
Sets the change log of this package.
changeLog
- The change log.Copyright © 2015–2019. All rights reserved.