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 Details

    • DuplicatedRecordIdValidator

      public DuplicatedRecordIdValidator()
  • Method Details

    • validate

      public ValidationError validate(Mapping mapping)
      Description copied from interface: IMappingValidator
      Checks a mapping for a possible post-parsing error.
      Specified by:
      validate in interface IMappingValidator
      Parameters:
      mapping - The mapping to check.
      Returns:
      An error code, or null if the set passes the test represented by this object.
    • validate

      public ValidationError validate(MappingSet ms)
      Description copied from interface: IMappingSetValidator
      Checks a mapping set for a possible post-parsing error.
      Specified by:
      validate in interface IMappingSetValidator
      Parameters:
      ms - The mapping set to check.
      Returns:
      An error code, or null if the set passes the test represented by this object.