Class ReferentialIntegrityValidator


  • public class ReferentialIntegrityValidator
    extends Object
    Class that checks a set of PDS catalog files for referential integrity.
    Author:
    mcayanan
    • Constructor Detail

      • ReferentialIntegrityValidator

        public ReferentialIntegrityValidator​(ReferentialIntegrityReport report)
        Default constructor.
        Parameters:
        report - An object representation of a referential integrity report to log the errors.
    • Method Detail

      • isValid

        public boolean isValid​(List<gov.nasa.pds.tools.label.Label> catalogs,
                               URL allrefs)
      • addRICheckers

        public void addRICheckers​(List<RIChecker> checkers)
        Adds an appropriate checker to the validator.
        Parameters:
        checkers - A list of referential integrity checks to perform.
      • addRIChecker

        public void addRIChecker​(RIType type)