public class Dependency
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Package |
m_sourcePackage
The source package
|
protected PackageConstraint |
m_targetPackage
The target package (wrapped in a PackageConstraint)
|
| 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() |
protected Package m_sourcePackage
protected PackageConstraint m_targetPackage
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