Package com.tagtraum.beatunes.inspection
Class GenreTypoInspector
- java.lang.Object
-
- com.tagtraum.beatunes.inspection.Inspector
-
- com.tagtraum.beatunes.inspection.TypoInspector
-
- com.tagtraum.beatunes.inspection.GenreTypoInspector
-
- All Implemented Interfaces:
DetailView
,View
,ApplicationComponent<BeaTunes>
public class GenreTypoInspector extends TypoInspector
Compares the spelling of different song attributes to catch songs that are spelled slightly different. E.g. genre 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 GenreTypoInspector(BeaTunes beaTunes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.tagtraum.beatunes.inspection.GenreTypoInspector.TypoIssue
createIssue(List<String> similarAttributes)
Creates an issue for a possible typo.protected boolean
exclude(TypoInspector.Attribute attribute1, TypoInspector.Attribute attribute2)
Allows subclasses to specify specific excludes.String
getDescription()
Inspector description.String
getName()
Inspector name.-
Methods inherited from class com.tagtraum.beatunes.inspection.TypoInspector
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
-
GenreTypoInspector
public GenreTypoInspector(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
-
exclude
protected boolean exclude(TypoInspector.Attribute attribute1, TypoInspector.Attribute attribute2)
Description copied from class:TypoInspector
Allows subclasses to specify specific excludes.- Overrides:
exclude
in classTypoInspector
- Parameters:
attribute1
- attribute 1attribute2
- attribute 2- Returns:
- true, if the attribute should be excluded as a cause for an issue. default is false
-
createIssue
protected com.tagtraum.beatunes.inspection.GenreTypoInspector.TypoIssue 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
-
-