public class BinaryControlImpl extends AbstractControl implements BinaryControl
A BinaryControl implementation.
| Constructor and Description |
|---|
BinaryControlImpl()
Creates a binary control.
|
BinaryControlImpl(PackageDependency source,
PackageVersion version,
Architecture architecture,
PackageMultiArchitecture multiArchitecture,
PackageMaintainer maintainer,
Homepage homepage,
PackageName packageName,
Section section,
PackagePriority priority,
Boolean essential,
List<PackageDependency> depends,
List<PackageDependency> recommends,
List<PackageDependency> suggest,
List<PackageDependency> enhances,
List<PackageDependency> preDepends,
List<PackageDependency> breaks,
List<PackageDependency> conflicts,
List<PackageDependency> provides,
List<PackageDependency> replaces,
List<PackageDependency> builtUsing,
Size installedSize,
Description description)
Creates a binary control.
|
| Modifier and Type | Method and Description |
|---|---|
List<PackageDependency> |
getBreaks()
Returns the packages which will "broken" by this package.
|
List<PackageDependency> |
getBuiltUsing()
Returns the packages which were used to built this package.
|
List<PackageDependency> |
getConflicts()
Returns the packages which will be in conflict with this package.
|
List<PackageDependency> |
getDepends()
Returns the packages on which this package depends on.
|
Description |
getDescription()
Returns the description.
|
List<PackageDependency> |
getEnhances()
Returns the packages which are enhanced in their functionality by this
package.
|
Boolean |
getEssential()
The flag if the package is essential for the system and can't be removed.
|
Size |
getInstalledSize()
Returns an estimate of the total amount of disk space required to install
this package.
|
String |
getModuleAliases()
Returns the module aliases.
|
PackageName |
getPackage()
Returns the name of the binary package.
|
List<PackageDependency> |
getPreDepends()
Returns the packages which must be installed before this package is
installed.
|
PackagePriority |
getPriority()
Returns the priority.
|
List<PackageDependency> |
getProvides()
Returns the virtual packages which are provided by this package.
|
List<PackageDependency> |
getRecommends()
Returns the packages which this package has a strong, but not absolute,
dependency.
|
List<PackageDependency> |
getReplaces()
Returns the packages which are replaced by this package.
|
Section |
getSection()
Returns the section.
|
List<PackageDependency> |
getSuggests()
Returns the packages which this package suggests to install for enhancing
its functionality.
|
void |
setBreaks(List<PackageDependency> breaks)
Sets the packages which will "broken" by this package.
|
void |
setBuiltUsing(List<PackageDependency> builtUsing)
Sets the packages which were used to built this package.
|
void |
setConflicts(List<PackageDependency> conflicts)
Sets the packages which will be in conflict with this package.
|
void |
setDepends(List<PackageDependency> depends)
Sets the the packages on which this package depends on.
|
void |
setDescription(Description description)
Sets the description.
|
void |
setEnhances(List<PackageDependency> enhances)
Sets the packages which are enhanced in their functionality by this
package.
|
void |
setEssential(Boolean essential)
Sets the flag if the package is essential for the system and can't be
removed.
|
void |
setInstalledSize(Size installedSize)
Sets an estimate of the total amount of disk space required to install
this package.
|
void |
setModuleAliases(String moduleAliases)
Sets the module aliases.
|
void |
setPackage(PackageName packageName)
Sets the name of the binary package.
|
void |
setPreDepends(List<PackageDependency> preDepends)
Sets the packages which must be installed before this package is
installed.
|
void |
setPriority(PackagePriority priority)
Sets the priority.
|
void |
setProvides(List<PackageDependency> provides)
Sets the virtual packages which are provided by this package.
|
void |
setRecommends(List<PackageDependency> recommends)
Sets the packages which this package has a strong, but not absolute,
dependency.
|
void |
setReplaces(List<PackageDependency> replaces)
Sets the packages which are replaced by this package.
|
void |
setSection(Section section)
Sets the section.
|
void |
setSuggests(List<PackageDependency> suggest)
Sets the packages which this package suggests to install for enhancing
its functionality.
|
getArchitecture, getHomepage, getMaintainer, getMultiArchitecture, getOriginalMaintainer, getSource, getVersion, setArchitecture, setHomepage, setMaintainer, setMultiArchitecture, setOriginalMaintainer, setSource, setVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArchitecture, getHomepage, getMaintainer, getMultiArchitecture, getOriginalMaintainer, getSource, getVersionpublic BinaryControlImpl()
Creates a binary control.
public BinaryControlImpl(PackageDependency source, PackageVersion version, Architecture architecture, PackageMultiArchitecture multiArchitecture, PackageMaintainer maintainer, Homepage homepage, PackageName packageName, Section section, PackagePriority priority, Boolean essential, List<PackageDependency> depends, List<PackageDependency> recommends, List<PackageDependency> suggest, List<PackageDependency> enhances, List<PackageDependency> preDepends, List<PackageDependency> breaks, List<PackageDependency> conflicts, List<PackageDependency> provides, List<PackageDependency> replaces, List<PackageDependency> builtUsing, Size installedSize, Description description)
Creates a binary control.
source - The source package dependency.version - The version of the package.architecture - The architecture.multiArchitecture - The multiple architecture property.maintainer - The maintainer.homepage - The home-page.packageName - The name of the binary package.section - The section.priority - The priority.essential - The flag if the package is essential for the system and can't
be removed.depends - The packages on which this package depends on.recommends - The packages which this package has a strong, but not
absolute, dependency.suggest - The packages which this package suggests to install for
enhancing its functionality.enhances - The packages which are enhanced in their functionality by this
package.preDepends - The packages which must be installed before this package is
installed.breaks - The packages which will "broken" by this package.conflicts - The packages which will be in conflict with this package.provides - The virtual packages which are provided by this package.replaces - The packages which are replaced by this package.builtUsing - The packages which were used to built this package.installedSize - The estimate of the total amount of disk space required to
install this package.description - The description.public PackageName getPackage()
BinaryControlReturns the name of the binary package.
getPackage in interface BinaryControlpublic void setPackage(PackageName packageName)
Sets the name of the binary package.
packageName - The name.public Section getSection()
BinaryControlReturns the section.
See 5.6.5 Section for further information.
getSection in interface BinaryControlpublic void setSection(Section section)
Sets the section.
section - The section.public PackagePriority getPriority()
BinaryControlReturns the priority.
getPriority in interface BinaryControlpublic void setPriority(PackagePriority priority)
Sets the priority.
priority - The priority.public Boolean getEssential()
BinaryControlThe flag if the package is essential for the system and can't be removed.
See 5.6.9 Essential for further information.
getEssential in interface BinaryControlpublic void setEssential(Boolean essential)
Sets the flag if the package is essential for the system and can't be removed.
essential - The flag.public List<PackageDependency> getDepends()
BinaryControlReturns the packages on which this package depends on.
See 7.2 Binary Dependencies - Depends, Recommends, Suggests, Enhances, Pre-Depends for further information.
getDepends in interface BinaryControlpublic void setDepends(List<PackageDependency> depends)
Sets the the packages on which this package depends on.
depends - The dependencies.public List<PackageDependency> getRecommends()
BinaryControlReturns the packages which this package has a strong, but not absolute, dependency.
See 7.2 Binary Dependencies - Depends, Recommends, Suggests, Enhances, Pre-Depends for further information.
getRecommends in interface BinaryControlpublic void setRecommends(List<PackageDependency> recommends)
Sets the packages which this package has a strong, but not absolute, dependency.
recommends - The dependencies.public List<PackageDependency> getSuggests()
BinaryControlReturns the packages which this package suggests to install for enhancing its functionality.
The opposite of the list returned by the BinaryControl.getEnhances() method.
See 7.2 Binary Dependencies - Depends, Recommends, Suggests, Enhances, Pre-Depends for further information.
getSuggests in interface BinaryControlpublic void setSuggests(List<PackageDependency> suggest)
Sets the packages which this package suggests to install for enhancing its functionality.
suggest - The dependencies.public List<PackageDependency> getEnhances()
BinaryControlReturns the packages which are enhanced in their functionality by this package.
The opposite of the list returned by the BinaryControl.getSuggests() method.
See 7.2 Binary Dependencies - Depends, Recommends, Suggests, Enhances, Pre-Depends for further information.
getEnhances in interface BinaryControlpublic void setEnhances(List<PackageDependency> enhances)
Sets the packages which are enhanced in their functionality by this package.
enhances - The dependencies.public List<PackageDependency> getPreDepends()
BinaryControlReturns the packages which must be installed before this package is installed.
In comparison to the list returned by the BinaryControl.getDepends() method
this packages must be completely installed by the time this package is
installed and not allowed to be installed in the same process.
See 7.2 Binary Dependencies - Depends, Recommends, Suggests, Enhances, Pre-Depends for further information.
getPreDepends in interface BinaryControlpublic void setPreDepends(List<PackageDependency> preDepends)
Sets the packages which must be installed before this package is installed.
preDepends - The dependencies.public List<PackageDependency> getBreaks()
BinaryControlReturns the packages which will "broken" by this package.
This package can't be installed until the other packages are deconfigured. The broken packages can't be reconfigured afterwards.
See 7.3 Packages which break other packages - Breaks for further information.
getBreaks in interface BinaryControlpublic void setBreaks(List<PackageDependency> breaks)
Sets the packages which will "broken" by this package.
breaks - The dependencies.public List<PackageDependency> getConflicts()
BinaryControlReturns the packages which will be in conflict with this package.
The conflict packages and this package can't be installed on the same system at the same time.
See 7.4 Conflicting binary packages - Conflicts for further information.
getConflicts in interface BinaryControlpublic void setConflicts(List<PackageDependency> conflicts)
Sets the packages which will be in conflict with this package.
conflicts - The dependencies.public List<PackageDependency> getProvides()
BinaryControlReturns the virtual packages which are provided by this package.
See 7.5 Virtual packages - Provides for further information.
getProvides in interface BinaryControlpublic void setProvides(List<PackageDependency> provides)
Sets the virtual packages which are provided by this package.
provides - The dependencies.public List<PackageDependency> getReplaces()
BinaryControlReturns the packages which are replaced by this package.
See 7.6 Overwriting files and replacing packages - Replaces for further information.
getReplaces in interface BinaryControlpublic void setReplaces(List<PackageDependency> replaces)
Sets the packages which are replaced by this package.
replaces - The dependencies.public List<PackageDependency> getBuiltUsing()
BinaryControlReturns the packages which were used to built this package.
See 7.8 Additional source packages used to build the binary - Built-Using
getBuiltUsing in interface BinaryControlpublic void setBuiltUsing(List<PackageDependency> builtUsing)
Sets the packages which were used to built this package.
builtUsing - The dependencies.public Size getInstalledSize()
BinaryControlReturns an estimate of the total amount of disk space required to install this package.
getInstalledSize in interface BinaryControlpublic void setInstalledSize(Size installedSize)
Sets an estimate of the total amount of disk space required to install this package.
installedSize - The installed size.public String getModuleAliases()
BinaryControlReturns the module aliases.
getModuleAliases in interface BinaryControlpublic void setModuleAliases(String moduleAliases)
Sets the module aliases.
moduleAliases - The module aliases.public Description getDescription()
BinaryControlReturns the description.
getDescription in interface BinaryControlpublic void setDescription(Description description)
Sets the description.
description - The description.Copyright © 2015–2019. All rights reserved.