Package gov.nasa.pds.citool.ri
Class RIChecker
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected URL
supportFile
-
Constructor Summary
Constructors Constructor Description RIChecker()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
supportFile
protected URL supportFile
-
-
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()
-
-