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 TypeMethodDescriptioncheckPrefixAndSuffix(String prefix, String suffix) static intgetCommonStartLength(String s1, String s2) intabstract Set<ListInterval>getItemsIntervals(List<ListItemTextInfo> itemsInfo) getListItemInfo(ListItemTextInfo listItemTextInfo, int prefixLength) protected intgetNotRegexEndLength(String string, int commonEndLength) protected intgetNotRegexStartLength(String string, int commonStartLength) protected abstract IntegergetNumberFromString(String string) protected abstract StringgetNumberingStyle(boolean isUpperCase) 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) intrecalculatePrefixLength(String string, int prefixLength) voidsetIncrement(int increment)
-
Constructor Details
-
ListLabelsDetectionAlgorithm
public ListLabelsDetectionAlgorithm() -
ListLabelsDetectionAlgorithm
public ListLabelsDetectionAlgorithm(int increment)
-
-
Method Details
-
getNumberingStyle
-
isListLabels
-
getItemsIntervals
-
getCommonStartLength
-
getRegex
-
getStringFromNumber
-
getNumberFromString
-
getRegexStartLength
-
getRegexStartLength
-
getNotRegexEndLength
-
getNotRegexStartLength
-
getListItemInfo
-
recalculatePrefixLength
-
checkPrefixAndSuffix
-
getIncrement
public int getIncrement() -
setIncrement
public void setIncrement(int increment)
-