Class MissingLicenseValidator
- java.lang.Object
-
- org.incenp.obofoundry.sssom.checks.MissingLicenseValidator
-
- All Implemented Interfaces:
IMappingSetValidator
public class MissingLicenseValidator extends Object implements IMappingSetValidator
Checks that a mapping set has a license.The
licenseslot is officially considered as required at the set level, though historically both SSSOM-Py and SSSOM-Java have been lenient on that requirement.
-
-
Constructor Summary
Constructors Constructor Description MissingLicenseValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationErrorvalidate(MappingSet ms)Checks a mapping set for a possible post-parsing error.
-
-
-
Method Detail
-
validate
public ValidationError validate(MappingSet ms)
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.
-
-