Class InvalidJustificationValidator

java.lang.Object
org.incenp.obofoundry.sssom.checks.InvalidJustificationValidator
All Implemented Interfaces:
IMappingSetValidator, IMappingValidator

public class InvalidJustificationValidator extends Object implements IMappingSetValidator, IMappingValidator
Checks that a mapping has a valid mapping justification.

This is kept separate from the check that a mapping has a mapping justification at all so that we can enable this check only at the highest level of validation.

  • Constructor Details

    • InvalidJustificationValidator

      public InvalidJustificationValidator()
  • 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.