Interface Validator<T>
- Type Parameters:
T- the type of the elements to be checked
- All Known Implementing Classes:
ConjunctionFormulaValidator, ConjunctiveHeadRuleValidator, ConstantOnlyAtomValidator, CQValidator, DatalogRuleValidator, PositiveFormulaValidator, PositiveHeadRuleValidator, UCQValidator
public interface Validator<T>
Checks whether elements satisfy an implementation-defined property.
- Author:
- Florent Tornil
Validate a specific condition over the given elements
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancheck(Collection<? extends T> elements) Checks whether every supplied element satisfies this validator.booleanChecks whether the supplied element satisfies this validator.
-
Method Details
-
check
Checks whether every supplied element satisfies this validator.- Parameters:
elements- elements to check- Returns:
- true iff all the elements respect a implementation defined property
-
check
Checks whether the supplied element satisfies this validator.- Parameters:
element- element to check- Returns:
- true iff the element respect a implementation defined property
-