Class ListLabelsDetectionAlgorithm
java.lang.Object
org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ListLabelsDetectionAlgorithm
- Direct Known Subclasses:
ArabicNumbersListLabelsDetectionAlgorithm,LettersListLabelsDetectionAlgorithm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleancheckPrefixAndSuffix(String prefix, String suffix) protected static intgetCommonStartLength(String s1, String s2) abstract Set<ListInterval>getItemsIntervals(List<ListItemTextInfo> itemsInfo) 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)
-
Constructor Details
-
ListLabelsDetectionAlgorithm
public ListLabelsDetectionAlgorithm()
-
-
Method Details
-
isListLabels
-
getItemsIntervals
-
getCommonStartLength
-
getRegex
-
getStringFromNumber
-
getNumberFromString
-
getRegexStartLength
-
getRegexStartLength
-
getNotRegexEndLength
-
getNotRegexStartLength
-
checkPrefixAndSuffix
-