All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.nasa.pds.citool.ri.ReferentialIntegrityValidator Maven / Gradle / Ivy

Go to download

The Legacy Catalog Tool provides functionality for ingesting PDS3 catalog files into the PDS4 infrastructure including the Registry Service.

There is a newer version: 3.1.0
Show newest version
package gov.nasa.pds.citool.ri;

import gov.nasa.pds.citool.report.ReferentialIntegrityReport;
import gov.nasa.pds.citool.status.Status;
import gov.nasa.pds.tools.label.Label;

import java.net.URL;
import java.util.ArrayList;
import java.util.List;

/**
 * Class that checks a set of PDS catalog files for referential integrity.
 *
 * @author mcayanan
 *
 */
public class ReferentialIntegrityValidator {
    List riCheckers;
    private ReferentialIntegrityReport report;

    /**
     * Default constructor.
     *
     * @param report An object representation of a referential integrity
     * report to log the errors.
     */
    public ReferentialIntegrityValidator(ReferentialIntegrityReport report) {
        this.report = report;
        riCheckers = new ArrayList();
    }

    public boolean isValid(List




© 2015 - 2024 Weber Informatics LLC | Privacy Policy