Class ListLabelsDetectionAlgorithm
- java.lang.Object
-
- org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ListLabelsDetectionAlgorithm
-
- Direct Known Subclasses:
ArabicNumbersListLabelsDetectionAlgorithm,LettersListLabelsDetectionAlgorithm
public abstract class ListLabelsDetectionAlgorithm extends Object
-
-
Constructor Summary
Constructors Constructor Description ListLabelsDetectionAlgorithm()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static intgetCommonStartLength(String s1, String s2)abstract Set<ListInterval>getItemsIntervals(List<String> items)protected intgetNotRegexEndLength(String string, int commonEndLength)protected intgetNotRegexStartLength(String string, int commonStartLength)protected abstract IntegergetNumberFromString(String string)protected abstract StringgetRegex()protected intgetRegexStartLength(String string)static intgetRegexStartLength(String string, String regex)protected abstract StringgetStringFromNumber(Integer number)abstract booleanisListLabels(List<String> labels, int commonStartLength, int commonEndLength)
-
-
-
Method Detail
-
isListLabels
public abstract boolean isListLabels(List<String> labels, int commonStartLength, int commonEndLength)
-
getItemsIntervals
public abstract Set<ListInterval> getItemsIntervals(List<String> items)
-
getRegex
protected abstract String getRegex()
-
getRegexStartLength
protected int getRegexStartLength(String string)
-
getNotRegexEndLength
protected int getNotRegexEndLength(String string, int commonEndLength)
-
getNotRegexStartLength
protected int getNotRegexStartLength(String string, int commonStartLength)
-
-