gov.nasa.pds.citool.ri
Class ReferentialIntegrityValidator

java.lang.Object
  extended by gov.nasa.pds.citool.ri.ReferentialIntegrityValidator
All Implemented Interfaces:
gov.nasa.pds.tools.label.validate.Status

public class ReferentialIntegrityValidator
extends java.lang.Object
implements gov.nasa.pds.tools.label.validate.Status

Class that checks a set of PDS catalog files for referential integrity.

Author:
mcayanan

Field Summary
 
Fields inherited from interface gov.nasa.pds.tools.label.validate.Status
FAIL, PASS, SKIP, UNKNOWN
 
Constructor Summary
ReferentialIntegrityValidator(java.util.List<java.lang.String> types)
          Default constructor.
 
Method Summary
 void addRIChecker(java.lang.String type)
          Adds an appropriate checker to the validator.
 boolean isValid(java.util.List<gov.nasa.pds.tools.label.Label> catalogs, java.net.URL allrefs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferentialIntegrityValidator

public ReferentialIntegrityValidator(java.util.List<java.lang.String> types)
Default constructor.

Parameters:
types - A list of referential integrity types to check.
Method Detail

isValid

public boolean isValid(java.util.List<gov.nasa.pds.tools.label.Label> catalogs,
                       java.net.URL allrefs)

addRIChecker

public void addRIChecker(java.lang.String type)
Adds an appropriate checker to the validator.

Parameters:
type - A referential integrity type


Copyright © 2005-2010 Planetary Data System. All Rights Reserved.