public class ProtectedConstraint extends BooleanConstraint
protected
Links.Constructor and Description |
---|
ProtectedConstraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(Link link,
ResourceContext context)
Returns true if the specified link satisfies the constraint.
|
java.lang.String |
toString() |
static ProtectedConstraint |
useProtectedLink()
Returns
ProtectedConstraint instance. |
cost, validate
public static ProtectedConstraint useProtectedLink()
ProtectedConstraint
instance.ProtectedConstraint
instancepublic boolean isValid(Link link, ResourceContext context)
BooleanConstraint
isValid
in class BooleanConstraint
link
- link to be validatedcontext
- resource context for checking available resourcespublic java.lang.String toString()
toString
in class java.lang.Object