Package com.tagtraum.beatunes.inspection
Class MissingAlbumArtistInspector.MostUsedArtistSolution
- java.lang.Object
-
- com.tagtraum.beatunes.inspection.MissingAlbumArtistInspector.MostUsedArtistSolution
-
- All Implemented Interfaces:
Solution<com.tagtraum.beatunes.inspection.MissingAlbumArtistInspector.MissingAlbumArtistIssue>
- Enclosing class:
- MissingAlbumArtistInspector
public class MissingAlbumArtistInspector.MostUsedArtistSolution extends Object
-
-
Constructor Summary
Constructors Constructor Description MostUsedArtistSolution(com.tagtraum.beatunes.inspection.MissingAlbumArtistInspector.MissingAlbumArtistIssue issue, String albumArtist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassDescription()Returns a common description for this class of solution.StringgetClassId()Id for a class of solutions.StringgetDescription()Description of this solution.StringgetId()Unique id for this solution instance.booleanisPreferred()Indicated to the user whether this solution is a 'preferred' solution, i.e.
-
-
-
Constructor Detail
-
MostUsedArtistSolution
public MostUsedArtistSolution(com.tagtraum.beatunes.inspection.MissingAlbumArtistInspector.MissingAlbumArtistIssue issue, String albumArtist)
-
-
Method Detail
-
isPreferred
public boolean isPreferred()
Indicated to the user whether this solution is a 'preferred' solution, i.e. will most likely lead to the desired, correct result. Preferred solutions may be specially marked in the UI by the application.- Specified by:
isPreferredin interfaceSolution<com.tagtraum.beatunes.inspection.MissingAlbumArtistInspector.MissingAlbumArtistIssue>- Returns:
- true, if this is a preferred solution.
-
getDescription
public String getDescription()
Description copied from interface:SolutionDescription of this solution. You may use HTML, but no enclosing <html> tags. E.g.:My <em>super</em> solution.- Specified by:
getDescriptionin interfaceSolution<com.tagtraum.beatunes.inspection.MissingAlbumArtistInspector.MissingAlbumArtistIssue>- Returns:
- description
- See Also:
Solution.getClassDescription()
-
getClassDescription
public String getClassDescription()
Description copied from interface:SolutionReturns a common description for this class of solution. This is used when the same kind (or class) of solution should be used for a collection of issues. In other words, the user selects multiple issues and wants them all solved in the same way. This implies, that there cannot be any user interaction.
If this solution does not make any sense as a class solution, this method must returnnull.- Specified by:
getClassDescriptionin interfaceSolution<com.tagtraum.beatunes.inspection.MissingAlbumArtistInspector.MissingAlbumArtistIssue>- Returns:
- description contains description for a whole collection of issues, not an individual one or null, if this solution cannot be applied to multiple issues at once (because it is too specific for a given issue)
- See Also:
Solution.getDescription(),Solution.getClassId()
-
getId
public String getId()
Description copied from interface:SolutionUnique id for this solution instance. May be used in hyperlinks.- Specified by:
getIdin interfaceSolution<com.tagtraum.beatunes.inspection.MissingAlbumArtistInspector.MissingAlbumArtistIssue>- Returns:
- unique id for this issue, which can be used in hyperlinks
- See Also:
Solution.getClassId()
-
getClassId
public String getClassId()
Description copied from interface:SolutionId for a class of solutions. If this solutions cannot be applied for multiple issues at once, this method must returnnull.- Specified by:
getClassIdin interfaceSolution<com.tagtraum.beatunes.inspection.MissingAlbumArtistInspector.MissingAlbumArtistIssue>- Returns:
- id for this solution's class - typically unique per solutions class. Default value (if used) should be the actual class name, i.e. solution.getClass().getName()
- See Also:
Solution.getClassDescription()
-
-