gov.nasa.pds.citool.ri
Class RIChecker

java.lang.Object
  extended by gov.nasa.pds.citool.ri.RIChecker
Direct Known Subclasses:
DataSetRIChecker, InstrumentHostRIChecker, InstrumentRIChecker, MissionRIChecker, PersonnelRIChecker, ReferenceRIChecker, TargetRIChecker, VolumeRIChecker

public abstract class RIChecker
extends Object

Base class for Referential Integrity checking.

Author:
mcayanan

Field Summary
protected  URL supportFile
           
 
Constructor Summary
RIChecker()
           
 
Method Summary
 void addProblem(gov.nasa.pds.tools.LabelParserException problem)
           
 void addProblems(List<gov.nasa.pds.tools.LabelParserException> problems)
           
 List<gov.nasa.pds.tools.LabelParserException> getProblems()
           
abstract  RIType getType()
           
 Map<String,gov.nasa.pds.tools.label.AttributeStatement> getUnmatchedValues(List<gov.nasa.pds.tools.label.AttributeStatement> parents, List<gov.nasa.pds.tools.label.AttributeStatement> children)
           
 Map<String,gov.nasa.pds.tools.label.AttributeStatement> getUnmatchedValues(Map<String,List<gov.nasa.pds.tools.label.AttributeStatement>> parents, Map<String,List<gov.nasa.pds.tools.label.AttributeStatement>> children)
           
 boolean hasProblems()
           
abstract  void performCheck(List<gov.nasa.pds.tools.label.Label> parents, List<gov.nasa.pds.tools.label.Label> children)
          Determine if the supplied list of catalog files has referential integrity.
 void setSupportFile(URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

supportFile

protected URL supportFile
Constructor Detail

RIChecker

public RIChecker()
Method Detail

getUnmatchedValues

public Map<String,gov.nasa.pds.tools.label.AttributeStatement> getUnmatchedValues(List<gov.nasa.pds.tools.label.AttributeStatement> parents,
                                                                                  List<gov.nasa.pds.tools.label.AttributeStatement> children)

getUnmatchedValues

public Map<String,gov.nasa.pds.tools.label.AttributeStatement> getUnmatchedValues(Map<String,List<gov.nasa.pds.tools.label.AttributeStatement>> parents,
                                                                                  Map<String,List<gov.nasa.pds.tools.label.AttributeStatement>> children)

setSupportFile

public void setSupportFile(URL url)

addProblem

public void addProblem(gov.nasa.pds.tools.LabelParserException problem)

addProblems

public void addProblems(List<gov.nasa.pds.tools.LabelParserException> problems)

getProblems

public List<gov.nasa.pds.tools.LabelParserException> getProblems()

hasProblems

public boolean hasProblems()

performCheck

public abstract void performCheck(List<gov.nasa.pds.tools.label.Label> parents,
                                  List<gov.nasa.pds.tools.label.Label> children)
Determine if the supplied list of catalog files has referential integrity.

Parameters:
parents - A list of parent labels.
children - A list of child labels.

getType

public abstract RIType getType()


Copyright © 2010–2014 Planetary Data System. All rights reserved.