Class LettersListLabelsDetectionAlgorithm
- java.lang.Object
-
- org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ListLabelsDetectionAlgorithm
-
- org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.LettersListLabelsDetectionAlgorithm
-
- Direct Known Subclasses:
AlfaLettersListLabelsDetectionAlgorithm,RomanNumbersListLabelsDetectionAlgorithm
public abstract class LettersListLabelsDetectionAlgorithm extends ListLabelsDetectionAlgorithm
-
-
Constructor Summary
Constructors Constructor Description LettersListLabelsDetectionAlgorithm()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Set<ListInterval>getItemsIntervals(List<String> items)protected abstract StringgetLowerCaseRegex()protected abstract StringgetUpperCaseRegex()protected booleanisCharMatchRegex(String s, int index)booleanisListLabels(List<String> labels, int commonStartLength, int commonEndLength)-
Methods inherited from class org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ListLabelsDetectionAlgorithm
getCommonStartLength, getNotRegexEndLength, getNotRegexStartLength, getNumberFromString, getRegex, getRegexStartLength, getRegexStartLength, getStringFromNumber
-
-
-
-
Method Detail
-
isListLabels
public boolean isListLabels(List<String> labels, int commonStartLength, int commonEndLength)
- Specified by:
isListLabelsin classListLabelsDetectionAlgorithm
-
getItemsIntervals
public Set<ListInterval> getItemsIntervals(List<String> items)
- Specified by:
getItemsIntervalsin classListLabelsDetectionAlgorithm
-
getLowerCaseRegex
protected abstract String getLowerCaseRegex()
-
getUpperCaseRegex
protected abstract String getUpperCaseRegex()
-
isCharMatchRegex
protected boolean isCharMatchRegex(String s, int index)
-
-