@OpenApiAll
public interface ValidationRule
ElementValidationRuleImpl interface.ElementValidationRuleImpl| Modifier and Type | Method and Description | 
|---|---|
void | 
dispose()
This method will be invoked when instance of the  
ValidationRule
 will become no longer needed. | 
void | 
init(Project project,
    Constraint constraint)
This is the first method that is invoked on the implementation of
 the  
ValidationRule interface. | 
boolean | 
needsRun()
Returns whether the validation rule needs to run. 
 | 
java.util.Set<Annotation> | 
run(Project project,
   Constraint constraint)
Run the validation. 
 | 
void init(Project project, @CheckForNull Constraint constraint)
ValidationRule interface. Implementation can initialize
 internal state if required.project - a project of the constraint.constraint - a constraint object.boolean needsRun()
java.util.Set<Annotation> run(Project project, @CheckForNull Constraint constraint)
project - a project of the constraint.constraint - a constraint object.Annotation objects.void dispose()
ValidationRule
 will become no longer needed.