Class ValidatorResults
java.lang.Object
org.dlese.dpc.suggest.resource.urlcheck.ValidatorResults
Holds results of a search over a repository or a collection within a repository for similar and/or duplicate records.
Results are represented as DupSim instances.
- Author:
- ostwald
$Id $
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds a DupSim instance to the SimilarMirrorUrl attribute of the ValidatorResults objectprotected voidAdds a DupSim instance to the SimilarPrimaryUrl attribute of the ValidatorResults objectGets the duplicate attribute of the ValidatorResults objectGets the similarMirrorUrls attribute of the ValidatorResults objectGets the similarPrimaryUrls attribute of the ValidatorResults objectbooleanReturns true if a duplcate url (either primary or mirror) has been found.booleanDescription of the Methodprotected voidsetDuplicate(DupSim dup) Sets the duplicate attribute of the ValidatorResults objectprotected voidsetSimilarMirrorUrls(List dupSims) Sets the similarMirrorUrls attribute of the ValidatorResults objectprotected voidsetSimilarPrimaryUrls(List dupSims) Sets the similarPrimaryUrls attribute of the ValidatorResults objectReport the similar urls for inclusion in a dcsStatusNotetoString()Verbose version of reportSims for debugging purposes.
-
Method Details
-
addSimilarPrimaryUrl
Adds a DupSim instance to the SimilarPrimaryUrl attribute of the ValidatorResults object- Parameters:
sim- The feature to be added to the SimilarPrimaryUrl attribute
-
addSimilarMirrorUrl
Adds a DupSim instance to the SimilarMirrorUrl attribute of the ValidatorResults object- Parameters:
sim- The feature to be added to the SimilarMirrorUrl attribute
-
hasDuplicate
public boolean hasDuplicate()Returns true if a duplcate url (either primary or mirror) has been found.- Returns:
- Description of the Return Value
-
getDuplicate
Gets the duplicate attribute of the ValidatorResults object- Returns:
- The duplicate value
-
setDuplicate
Sets the duplicate attribute of the ValidatorResults object- Parameters:
dup- The new duplicate value
-
getSimilarMirrorUrls
Gets the similarMirrorUrls attribute of the ValidatorResults object- Returns:
- The similarMirrorUrls value
-
setSimilarMirrorUrls
Sets the similarMirrorUrls attribute of the ValidatorResults object- Parameters:
dupSims- The new similarMirrorUrls value
-
getSimilarPrimaryUrls
Gets the similarPrimaryUrls attribute of the ValidatorResults object- Returns:
- The similarPrimaryUrls value
-
setSimilarPrimaryUrls
Sets the similarPrimaryUrls attribute of the ValidatorResults object- Parameters:
dupSims- The new similarPrimaryUrls value
-
similarUrlReportForDcsStatusNote
Report the similar urls for inclusion in a dcsStatusNote -
toString
Verbose version of reportSims for debugging purposes. -
hasSimilarUrls
public boolean hasSimilarUrls()Description of the Method- Returns:
- Description of the Return Value
-