public class Dependency
extends java.lang.Object
Constructor and Description |
---|
Dependency(Package source,
PackageConstraint target)
Construct a new Dependency from a supplied source package and
PackageConstraint containing the target package.
|
Modifier and Type | Method and Description |
---|---|
Package |
getSource()
Get the source package.
|
PackageConstraint |
getTarget()
Get the target package constraint.
|
void |
setSource(Package source)
Set the source package.
|
void |
setTarget(PackageConstraint target)
Set the target package constraint.
|
java.lang.String |
toString() |
public Dependency(Package source, PackageConstraint target)
source
- the source package.target
- the target package (wrapped in a PackageConstraint).public void setSource(Package source)
source
- the source package.public Package getSource()
public void setTarget(PackageConstraint target)
target
- the target package (wrapped in a PackageConstraint).public PackageConstraint getTarget()
public java.lang.String toString()
toString
in class java.lang.Object