Class DuplicatedRecordIdValidator
java.lang.Object
org.incenp.obofoundry.sssom.checks.DuplicatedRecordIdValidator
- All Implemented Interfaces:
IMappingSetValidator,IMappingValidator
public class DuplicatedRecordIdValidator
extends Object
implements IMappingSetValidator, IMappingValidator
Check that no two records in a set have the same record ID.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChecks a mapping for a possible post-parsing error.validate(MappingSet ms) Checks a mapping set for a possible post-parsing error.
-
Constructor Details
-
DuplicatedRecordIdValidator
public DuplicatedRecordIdValidator()
-
-
Method Details
-
validate
Description copied from interface:IMappingValidatorChecks a mapping for a possible post-parsing error.- Specified by:
validatein interfaceIMappingValidator- Parameters:
mapping- The mapping to check.- Returns:
- An error code, or
nullif the set passes the test represented by this object.
-
validate
Description copied from interface:IMappingSetValidatorChecks a mapping set for a possible post-parsing error.- Specified by:
validatein interfaceIMappingSetValidator- Parameters:
ms- The mapping set to check.- Returns:
- An error code, or
nullif the set passes the test represented by this object.
-