Class MissingRecordIdValidator
java.lang.Object
org.incenp.obofoundry.sssom.checks.MissingRecordIdValidator
- All Implemented Interfaces:
IMappingSetValidator
,IMappingValidator
public class MissingRecordIdValidator
extends Object
implements IMappingSetValidator, IMappingValidator
Checks that either all records in a set have a record ID, or none have one.
-
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
-
MissingRecordIdValidator
public MissingRecordIdValidator()
-
-
Method Details
-
validate
Description copied from interface:IMappingValidator
Checks a mapping for a possible post-parsing error.- Specified by:
validate
in interfaceIMappingValidator
- Parameters:
mapping
- The mapping to check.- Returns:
- An error code, or
null
if the set passes the test represented by this object.
-
validate
Description copied from interface:IMappingSetValidator
Checks a mapping set for a possible post-parsing error.- Specified by:
validate
in interfaceIMappingSetValidator
- Parameters:
ms
- The mapping set to check.- Returns:
- An error code, or
null
if the set passes the test represented by this object.
-