java.lang.Object
org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ListLabelsDetectionAlgorithm
Direct Known Subclasses:
ArabicNumbersListLabelsDetectionAlgorithm, LettersListLabelsDetectionAlgorithm

public abstract class ListLabelsDetectionAlgorithm extends Object
  • Constructor Details

    • ListLabelsDetectionAlgorithm

      public ListLabelsDetectionAlgorithm()
    • ListLabelsDetectionAlgorithm

      public ListLabelsDetectionAlgorithm(int increment)
  • Method Details

    • getNumberingStyle

      protected abstract String getNumberingStyle(boolean isUpperCase)
    • isListLabels

      public abstract boolean isListLabels(List<String> labels, int commonStartLength, int commonEndLength)
    • getItemsIntervals

      public abstract Set<ListInterval> getItemsIntervals(List<ListItemTextInfo> itemsInfo)
    • getCommonStartLength

      public static int getCommonStartLength(String s1, String s2)
    • getRegex

      protected abstract String getRegex()
    • getStringFromNumber

      protected abstract String getStringFromNumber(Integer number)
    • getNumberFromString

      protected abstract Integer getNumberFromString(String string)
    • getRegexStartLength

      protected int getRegexStartLength(String string)
    • getRegexStartLength

      public static int getRegexStartLength(String string, String regex)
    • getNotRegexEndLength

      protected int getNotRegexEndLength(String string, int commonEndLength)
    • getNotRegexStartLength

      protected int getNotRegexStartLength(String string, int commonStartLength)
    • getListItemInfo

      public ListItemTextInfo getListItemInfo(ListItemTextInfo listItemTextInfo, int prefixLength)
    • recalculatePrefixLength

      public int recalculatePrefixLength(String string, int prefixLength)
    • checkPrefixAndSuffix

      public Boolean checkPrefixAndSuffix(String prefix, String suffix)
    • getIncrement

      public int getIncrement()
    • setIncrement

      public void setIncrement(int increment)