Package com.tagtraum.beatunes.inspection
Class ArtistTypoInspector
- java.lang.Object
-
- com.tagtraum.beatunes.inspection.Inspector
-
- com.tagtraum.beatunes.inspection.TypoInspector
-
- com.tagtraum.beatunes.inspection.ArtistTypoInspector
-
- All Implemented Interfaces:
DetailView
,View
,ApplicationComponent<BeaTunes>
public class ArtistTypoInspector extends TypoInspector
Compares the spelling of different song attributes to catch songs that are spelled slightly different. E.g. artist name.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tagtraum.beatunes.inspection.TypoInspector
TypoInspector.Attribute
-
-
Field Summary
-
Fields inherited from class com.tagtraum.beatunes.inspection.Inspector
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description ArtistTypoInspector(BeaTunes beaTunes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Issue
createIssue(List<String> similarAttributes)
Creates an issue for a possible typo.String
getDescription()
Inspector description.String
getName()
Inspector name.-
Methods inherited from class com.tagtraum.beatunes.inspection.TypoInspector
exclude, getAffectedSongIds, getAffectedSongs, getCategory, getMostUsedAttribute, getPropertyName, inspect
-
Methods inherited from class com.tagtraum.beatunes.inspection.Inspector
addIssue, addIssues, addPropertyChangeListener, cancel, checkInterruption, clearIssues, createDisabledIcon, createIcon, getApplication, getComponent, getFocusRoot, getIcon, getId, getInspection, getInspectionProgress, getInspectorCategory, getInspectorView, getIssueModel, getIssues, getIssues, getSolution, getStatusLabel, init, isAvailable, isBeforeFirstInspection, isCancelled, isEnabled, isIndeterminateProgress, isInspecting, isPartiallyEnabled, issueCount, performInspection, performInspection, refreshLocations, removeIssue, removeIssues, removePropertyChangeListener, setApplication, setAvailable, setEnabled, setInspectionProgress, shutdown, toString
-
-
-
-
Constructor Detail
-
ArtistTypoInspector
public ArtistTypoInspector(BeaTunes beaTunes)
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from class:Inspector
Inspector description.- Specified by:
getDescription
in classInspector
- Returns:
- long description about this inspector meant for the UI
-
createIssue
protected Issue createIssue(List<String> similarAttributes)
Description copied from class:TypoInspector
Creates an issue for a possible typo.- Specified by:
createIssue
in classTypoInspector
- Parameters:
similarAttributes
- attributes that these songs have in common- Returns:
- an issue
-
-