public abstract class AbstractControl extends Object implements Control
An abstract Control
implementation.
Constructor and Description |
---|
AbstractControl()
Creates a control.
|
AbstractControl(PackageDependency source,
PackageVersion version,
Architecture architecture,
PackageMultiArchitecture multiArchitecture,
PackageMaintainer maintainer,
Homepage homepage)
Creates a control.
|
Modifier and Type | Method and Description |
---|---|
Architecture |
getArchitecture()
Returns the architecture.
|
Homepage |
getHomepage()
Returns the homepage.
|
PackageMaintainer |
getMaintainer()
Returns the maintainer.
|
PackageMultiArchitecture |
getMultiArchitecture()
Returns the multiple architecture property.
|
PackageMaintainer |
getOriginalMaintainer()
Returns the original maintainer.
|
PackageDependency |
getSource()
Returns the source package dependency.
|
PackageVersion |
getVersion()
Returns the version of the package.
|
void |
setArchitecture(Architecture architecture)
Sets the architecture.
|
void |
setHomepage(Homepage homepage)
Sets the home-page.
|
void |
setMaintainer(PackageMaintainer maintainer)
Sets the maintainer.
|
void |
setMultiArchitecture(PackageMultiArchitecture multiArchitecture)
Sets the multiple architecture property.
|
void |
setOriginalMaintainer(PackageMaintainer originalMaintainer)
Sets the original maintainer.
|
void |
setSource(PackageDependency source)
Sets the source package dependency.
|
void |
setVersion(PackageVersion version)
Sets the version of the package.
|
public AbstractControl()
Creates a control.
public AbstractControl(PackageDependency source, PackageVersion version, Architecture architecture, PackageMultiArchitecture multiArchitecture, PackageMaintainer maintainer, Homepage homepage)
Creates a 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.public PackageDependency getSource()
Control
Returns the source package dependency.
If the control is the control of a source package this package dependency contains only the package name.
If the control is the control of a binary package this package dependency is the dependency on the corresponding source packages maybe including a version.
public void setSource(PackageDependency source)
Sets the source package dependency.
source
- The package dependency.public PackageVersion getVersion()
Control
Returns the version of the package.
getVersion
in interface Control
public void setVersion(PackageVersion version)
Sets the version of the package.
version
- The version.public Architecture getArchitecture()
Control
Returns the architecture.
getArchitecture
in interface Control
public void setArchitecture(Architecture architecture)
Sets the architecture.
architecture
- The architecture.public PackageMultiArchitecture getMultiArchitecture()
Control
Returns the multiple architecture property.
getMultiArchitecture
in interface Control
public void setMultiArchitecture(PackageMultiArchitecture multiArchitecture)
Sets the multiple architecture property.
multiArchitecture
- The multiple architecture property.public PackageMaintainer getMaintainer()
Control
Returns the maintainer.
getMaintainer
in interface Control
public void setMaintainer(PackageMaintainer maintainer)
Sets the maintainer.
maintainer
- The maintainer.public PackageMaintainer getOriginalMaintainer()
Control
Returns the original maintainer.
getOriginalMaintainer
in interface Control
public void setOriginalMaintainer(PackageMaintainer originalMaintainer)
Sets the original maintainer.
originalMaintainer
- The original maintainer.public Homepage getHomepage()
Control
Returns the homepage.
getHomepage
in interface Control
public void setHomepage(Homepage homepage)
Sets the home-page.
homepage
- The home-page.Copyright © 2015–2019. All rights reserved.