public abstract class PackageConstraint
extends java.lang.Object
Constructor and Description |
---|
PackageConstraint() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
checkConstraint(Package target)
Check the target package against the constraint embodied
in this PackageConstraint.
|
abstract PackageConstraint |
checkConstraint(PackageConstraint target)
Check the target package constraint against the constraint embodied
in this package constraint.
|
Package |
getPackage()
Get the package that this constraint applies to.
|
void |
setPackage(Package p)
Set the package that this constraint applies to.
|
public void setPackage(Package p)
p
- the package that this constraint applies to.public Package getPackage()
public abstract boolean checkConstraint(Package target) throws java.lang.Exception
target
- a package to check with respect to the
encapsulated package and the constraint.java.lang.Exception
- if the constraint can't be checked for some
reason.public abstract PackageConstraint checkConstraint(PackageConstraint target) throws java.lang.Exception
target
- the package constraint to compare againstjava.lang.Exception