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

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

// Copyright 2009, by the California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged.
// Any commercial use must be negotiated with the Office of Technology Transfer
// at the California Institute of Technology.
//
// This software is subject to U. S. export control laws and regulations
// (22 C.F.R. 120-130 and 15 C.F.R. 730-774). To the extent that the software
// is subject to U.S. export control laws and regulations, the recipient has
// the responsibility to obtain export licenses or other export authority as
// may be required before exporting such information to foreign countries or
// providing access to foreign nationals.
//
// $Id$

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 - 2025 Weber Informatics LLC | Privacy Policy