Package com.tagtraum.beatunes.inspection
Class DifferentAlbumArtistInspector
- java.lang.Object
-
- com.tagtraum.beatunes.inspection.Inspector
-
- com.tagtraum.beatunes.inspection.DifferentAlbumArtistInspector
-
- All Implemented Interfaces:
DetailView,View,ApplicationComponent<BeaTunes>
public class DifferentAlbumArtistInspector extends Inspector
Inspects a collection of songs, to see whether any albums have more than one album artist.- Author:
- Hendrik Schreiber
-
-
Field Summary
-
Fields inherited from class com.tagtraum.beatunes.inspection.Inspector
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description DifferentAlbumArtistInspector(BeaTunes application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()Indicates the inspection's category or grouping.StringgetDescription()Inspector description.StringgetName()Inspector name.StringgetPropertyName()Indicates which property is inspected by this inspector.voidinspect(InspectionProgressListener inspectionProgressListener)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, 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
-
DifferentAlbumArtistInspector
public DifferentAlbumArtistInspector(BeaTunes application)
-
-
Method Detail
-
getPropertyName
public String getPropertyName()
Description copied from class:InspectorIndicates 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:
getPropertyNamein classInspector- Returns:
- property name
-
getCategory
public String getCategory()
Description copied from class:InspectorIndicates the inspection's category or grouping. By default this returnsGENERAL.- Overrides:
getCategoryin classInspector- Returns:
- category, by default General
-
getDescription
public String getDescription()
Description copied from class:InspectorInspector description.- Specified by:
getDescriptionin classInspector- Returns:
- long description about this inspector meant for the UI
-
inspect
public void inspect(InspectionProgressListener inspectionProgressListener)
Description copied from class:InspectorInspects 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:
inspectin classInspector- Parameters:
inspectionProgressListener- progress listener- See Also:
Inspector.getIssues(),Inspector.addIssue(Issue),Inspector.isCancelled()
-
-