Package com.tagtraum.beatunes.inspection
Class SortnameUsedAsInspector
- java.lang.Object
-
- com.tagtraum.beatunes.inspection.Inspector
-
- com.tagtraum.beatunes.inspection.SortnameUsedAsInspector
-
- All Implemented Interfaces:
DetailView
,View
,ApplicationComponent<BeaTunes>
- Direct Known Subclasses:
SortnameUsedAsAlbum
,SortnameUsedAsAlbumArtist
,SortnameUsedAsArtist
,SortnameUsedAsComposer
,SortnameUsedAsName
public abstract class SortnameUsedAsInspector extends Inspector
Finds songs that have a sort name ("Beatles, The") as their real name.- Author:
- Hendrik Schreiber
-
-
Field Summary
-
Fields inherited from class com.tagtraum.beatunes.inspection.Inspector
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description SortnameUsedAsInspector(BeaTunes application)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getCallableSolutionDescription(String newName)
protected abstract String
getCallableSolutionProgressMessage(String newName)
String
getCategory()
Indicates the inspection's category or grouping.protected abstract String
getConfirmIgnoreDescription(String name)
protected abstract String
getConfirmIgnoreProgressMessage(String name)
protected abstract String
getInputDescription()
protected abstract String
getInputPrompt()
protected abstract String
getIssueDescription(String name)
protected abstract Property<String>
getProperty()
String
getPropertyName()
Indicates which property is inspected by this inspector.protected abstract String
getSolutionClassDescription()
protected abstract String
getSolutionDescription(String oldName, String newName)
void
inspect(InspectionProgressListener progress)
Inspects the given songs for problems of a specific kind.-
Methods inherited from class com.tagtraum.beatunes.inspection.Inspector
addIssue, addIssues, addPropertyChangeListener, cancel, checkInterruption, clearIssues, createDisabledIcon, createIcon, getApplication, getComponent, getDescription, getFocusRoot, getIcon, getId, getInspection, getInspectionProgress, getInspectorCategory, getInspectorView, getIssueModel, getIssues, getIssues, getName, 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
-
SortnameUsedAsInspector
public SortnameUsedAsInspector(BeaTunes application)
-
-
Method Detail
-
getCategory
public String getCategory()
Description copied from class:Inspector
Indicates the inspection's category or grouping. By default this returnsGENERAL
.- Overrides:
getCategory
in classInspector
- Returns:
- category, by default General
-
getPropertyName
public String getPropertyName()
Description copied from class:Inspector
Indicates which property is inspected by this inspector. This will be used when highlighting said property in views of a song that has issues.- Specified by:
getPropertyName
in classInspector
- Returns:
- property name
-
inspect
public void inspect(InspectionProgressListener progress)
Description copied from class:Inspector
Inspects the given songs for problems of a specific kind. Found issues are accessible through the issues property. Implementations need to add issues usingInspector.addIssue(Issue)
. If this is a long running inspection, you might want to checkInspector.isCancelled()
every now and then and abort the inspection should the method returntrue
. Note that this method is called in a separate thread, i.e. not the event dispatch thread. You can report progress throughInspectionProgressListener.progress(Inspector, String, float)
.- Specified by:
inspect
in classInspector
- Parameters:
progress
- progress listener- See Also:
Inspector.getIssues()
,Inspector.addIssue(Issue)
,Inspector.isCancelled()
-
getCallableSolutionDescription
protected abstract String getCallableSolutionDescription(String newName)
-
getCallableSolutionProgressMessage
protected abstract String getCallableSolutionProgressMessage(String newName)
-
getSolutionDescription
protected abstract String getSolutionDescription(String oldName, String newName)
-
getSolutionClassDescription
protected abstract String getSolutionClassDescription()
-
getInputDescription
protected abstract String getInputDescription()
-
getInputPrompt
protected abstract String getInputPrompt()
-
getConfirmIgnoreProgressMessage
protected abstract String getConfirmIgnoreProgressMessage(String name)
-
-