public interface PackageDependency
The dependency of a package to other packages.
See Chapter 7 - Declaring relationships between packages for further information.
| Modifier and Type | Interface and Description |
|---|---|
static class |
PackageDependency.Condition
A condition for a package dependency.
|
| Modifier and Type | Method and Description |
|---|---|
PackageDependency.Condition |
getCondition()
Returns the condition.
|
List<PackageDependency> |
getConditionPackageDependencies()
Returns the package dependencies for the condition.
|
PackageName |
getPackage()
Returns the name of the package.
|
PackageVersionRelationOperator |
getRelationOperator()
Returns the relational operator.
|
PackageVersion |
getVersion()
Returns the version.
|
boolean |
isCondition()
Returns the flag if this package dependency is a condition.
|
boolean isCondition()
Returns the flag if this package dependency is a condition.
If the package dependency is a condition the getCondition() and
getConditionPackageDependencies() methods must be used.
Otherwise the getPackage(), getRelationOperator() and
getVersion() methods must be used.
true, if this package dependency is a
condition, false otherwise.PackageDependency.Condition getCondition()
Returns the condition.
null, if this package dependency is
a not a condition.isCondition()List<PackageDependency> getConditionPackageDependencies()
Returns the package dependencies for the condition.
isCondition()PackageName getPackage()
Returns the name of the package.
null, if this package dependency is a
condition.isCondition()PackageVersionRelationOperator getRelationOperator()
Returns the relational operator.
null, if no version is
specified or this package dependency is a condition.isCondition()PackageVersion getVersion()
Returns the version.
null, if no version is specified or
this package dependency is a condition.isCondition()Copyright © 2015–2019. All rights reserved.