|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pentaho.packageManagement.PackageConstraint
public abstract class PackageConstraint
Abstract base class for package constraints. An example implementation might be to encapsulate a constraint with respect to a version number. Checking against a target in this case would typically assume the same package for both this and the target.
| Field Summary | |
|---|---|
protected Package |
m_thePackage
|
| Constructor Summary | |
|---|---|
PackageConstraint()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Package m_thePackage
| Constructor Detail |
|---|
public PackageConstraint()
| Method Detail |
|---|
public void setPackage(Package p)
p - the package that this constraint applies to.public Package getPackage()
public abstract boolean checkConstraint(Package target)
throws Exception
target - a package to check with respect to the
encapsulated package and the constraint.
Exception - if the constraint can't be checked for some
reason.
public abstract PackageConstraint checkConstraint(PackageConstraint target)
throws Exception
target - the package constraint to compare against
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||