public class EncapsulationConstraint extends BooleanConstraint
| Constructor and Description |
|---|
EncapsulationConstraint(EncapsulationType encapType)
Creates a new encapsulation constraint.
|
| Modifier and Type | Method and Description |
|---|---|
EncapsulationType |
encapType()
Returns the encapsulation type required by this constraint.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isValid(Link link,
ResourceContext context)
Returns true if the specified link satisfies the constraint.
|
String |
toString() |
cost, validatepublic EncapsulationConstraint(EncapsulationType encapType)
encapType - the encapsulation type EncapsulationTypepublic boolean isValid(Link link, ResourceContext context)
BooleanConstraintisValid in class BooleanConstraintlink - link to be validatedcontext - resource context for checking available resourcespublic EncapsulationType encapType()