public static class Requires.RequiresRoleConstraint extends Object implements Constraint<Requires,ObjectSelection>
Constructor and Description |
---|
RequiresRoleConstraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(Requires requires,
ObjectSelection objectSelection)
For each value or parameter which should be checked this method will be invoked.
|
public boolean isValid(Requires requires, ObjectSelection objectSelection)
Constraint
isValid
in interface Constraint<Requires,ObjectSelection>
requires
- the annotation to matchobjectSelection
- the value to be checked