gov.nasa.pds.citool.ri
Class ReferenceRIChecker

java.lang.Object
  extended by gov.nasa.pds.citool.ri.RIChecker
      extended by gov.nasa.pds.citool.ri.ReferenceRIChecker

public class ReferenceRIChecker
extends RIChecker

Class to do referential integrity checking on references.

Author:
mcayanan

Constructor Summary
ReferenceRIChecker()
          Constructor
 
Method Summary
 RIRecord hasRI(java.util.List<gov.nasa.pds.tools.label.Label> catalogs)
          Determine if the supplied list of catalog files have referential integrity.
 RIRecord hasRI(java.util.List<gov.nasa.pds.tools.label.Label> catalogs, java.net.URL allrefs)
          Determines whether the supplied list of catalog files has referential integrity when compared to the REF.CAT file.
 
Methods inherited from class gov.nasa.pds.citool.ri.RIChecker
getUnmatchedValues, getUnmatchedValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceRIChecker

public ReferenceRIChecker()
Constructor

Method Detail

hasRI

public RIRecord hasRI(java.util.List<gov.nasa.pds.tools.label.Label> catalogs,
                      java.net.URL allrefs)
Determines whether the supplied list of catalog files has referential integrity when compared to the REF.CAT file.

Specified by:
hasRI in class RIChecker
Parameters:
catalogs - A set of catalog files.
allrefs - The allrefs dictionary support file. If null, referential integrity against the allrefs file will be ignored.
Returns:
'True' if the set of catalog files has referential integrity, 'False' otherwise.

hasRI

public RIRecord hasRI(java.util.List<gov.nasa.pds.tools.label.Label> catalogs)
Description copied from class: RIChecker
Determine if the supplied list of catalog files have referential integrity.

Specified by:
hasRI in class RIChecker
Parameters:
catalogs - A list of catalog files.
Returns:
'true' if the files have referential integrity, 'false' otherwise.


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