Class SortInspector

    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
      • id

        protected static volatile int id
    • Constructor Detail

      • SortInspector

        protected SortInspector​(BeaTunes application)
    • Method Detail

      • getSortProperty

        public abstract Property<String> getSortProperty()
      • getRegularProperty

        public abstract Property<String> getRegularProperty()
      • getPropertyName

        public final 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 class Inspector
        Returns:
        property name
      • getCategory

        public String getCategory()
        Description copied from class: Inspector
        Indicates the inspection's category or grouping. By default this returns GENERAL.
        Overrides:
        getCategory in class Inspector
        Returns:
        category, by default General
      • getRegularName

        protected String getRegularName​(AudioSong song)
        Returns the regular name (as opposed to sort name) for this sort inspector. Implementations should return getName(), getArtist() etc.
        Parameters:
        song - song
        Returns:
        regular name (not sort name)
      • setSortName

        protected void setSortName​(AudioSong song,
                                   String sortName)
      • getCallableSolutionDescription

        protected abstract String getCallableSolutionDescription​(String sortName)
      • getCallableSolutionProgressMessage

        protected abstract String getCallableSolutionProgressMessage​(String sortName)
      • getSolutionDescription

        protected abstract String getSolutionDescription​(String sortName,
                                                         String originalName)
      • getSolutionClassDescription

        protected abstract String getSolutionClassDescription​(String sortName,
                                                              String originalName)
      • getInappropriateSortNameDescription

        protected abstract String getInappropriateSortNameDescription​(String sortName,
                                                                      String language)
      • getInputDescription

        protected abstract String getInputDescription()
      • getInputPrompt

        protected abstract String getInputPrompt()
      • createNotSubstringIssue

        protected com.tagtraum.beatunes.inspection.SortInspector.SortNameNotSubstringIssue createNotSubstringIssue​(List<AudioSong> songs)
      • createRemovedWrongArticleIssue

        protected com.tagtraum.beatunes.inspection.SortInspector.SortNameRemovedWrongArticleIssue createRemovedWrongArticleIssue​(List<AudioSong> songs,
                                                                                                                                 Locale[] possibleLanguages)