DLESE Tools
v1.6.0

org.dlese.dpc.suggest.resource.urlcheck
Class ValidatorResults

java.lang.Object
  extended by org.dlese.dpc.suggest.resource.urlcheck.ValidatorResults

public class ValidatorResults
extends Object

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
protected  void addSimilarMirrorUrl(DupSim sim)
          Adds a DupSim instance to the SimilarMirrorUrl attribute of the ValidatorResults object
protected  void addSimilarPrimaryUrl(DupSim sim)
          Adds a DupSim instance to the SimilarPrimaryUrl attribute of the ValidatorResults object
 DupSim getDuplicate()
          Gets the duplicate attribute of the ValidatorResults object
 List getSimilarMirrorUrls()
          Gets the similarMirrorUrls attribute of the ValidatorResults object
 List getSimilarPrimaryUrls()
          Gets the similarPrimaryUrls attribute of the ValidatorResults object
 boolean hasDuplicate()
          Returns true if a duplcate url (either primary or mirror) has been found.
 boolean hasSimilarUrls()
          Description of the Method
protected  void setDuplicate(DupSim dup)
          Sets the duplicate attribute of the ValidatorResults object
protected  void setSimilarMirrorUrls(List dupSims)
          Sets the similarMirrorUrls attribute of the ValidatorResults object
protected  void setSimilarPrimaryUrls(List dupSims)
          Sets the similarPrimaryUrls attribute of the ValidatorResults object
 String similarUrlReportForDcsStatusNote()
          Report the similar urls for inclusion in a dcsStatusNote
 String toString()
          Verbose version of reportSims for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addSimilarPrimaryUrl

protected void addSimilarPrimaryUrl(DupSim sim)
Adds a DupSim instance to the SimilarPrimaryUrl attribute of the ValidatorResults object

Parameters:
sim - The feature to be added to the SimilarPrimaryUrl attribute

addSimilarMirrorUrl

protected void addSimilarMirrorUrl(DupSim sim)
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

public DupSim getDuplicate()
Gets the duplicate attribute of the ValidatorResults object

Returns:
The duplicate value

setDuplicate

protected void setDuplicate(DupSim dup)
Sets the duplicate attribute of the ValidatorResults object

Parameters:
dup - The new duplicate value

getSimilarMirrorUrls

public List getSimilarMirrorUrls()
Gets the similarMirrorUrls attribute of the ValidatorResults object

Returns:
The similarMirrorUrls value

setSimilarMirrorUrls

protected void setSimilarMirrorUrls(List dupSims)
Sets the similarMirrorUrls attribute of the ValidatorResults object

Parameters:
dupSims - The new similarMirrorUrls value

getSimilarPrimaryUrls

public List getSimilarPrimaryUrls()
Gets the similarPrimaryUrls attribute of the ValidatorResults object

Returns:
The similarPrimaryUrls value

setSimilarPrimaryUrls

protected void setSimilarPrimaryUrls(List dupSims)
Sets the similarPrimaryUrls attribute of the ValidatorResults object

Parameters:
dupSims - The new similarPrimaryUrls value

similarUrlReportForDcsStatusNote

public String similarUrlReportForDcsStatusNote()
Report the similar urls for inclusion in a dcsStatusNote


toString

public String toString()
Verbose version of reportSims for debugging purposes.

Overrides:
toString in class Object
Returns:
Description of the Return Value

hasSimilarUrls

public boolean hasSimilarUrls()
Description of the Method

Returns:
Description of the Return Value

DLESE Tools
v1.6.0