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()
  • Method Details

    • isListLabels

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

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

      protected 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)
    • checkPrefixAndSuffix

      protected Boolean checkPrefixAndSuffix(String prefix, String suffix)