Class ArabicNumbersListLabelsDetectionAlgorithm
java.lang.Object
org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ListLabelsDetectionAlgorithm
org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ArabicNumbersListLabelsDetectionAlgorithm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegergetIntegerFromString(String string) getItemsIntervals(List<ListItemTextInfo> itemsInfo) protected IntegergetNumberFromString(String string) protected StringgetNumberingStyle(boolean isUpperCase) protected StringgetRegex()protected StringgetStringFromNumber(Integer number) booleanbooleanisListLabels(List<String> labels, int commonStartLength, int commonEndLength) intrecalculatePrefixLength(String string, int prefixLength) voidsetHeaderOrFooterDetection(boolean headerOrFooterDetection) Methods inherited from class org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ListLabelsDetectionAlgorithm
checkPrefixAndSuffix, getCommonStartLength, getIncrement, getListItemInfo, getNotRegexEndLength, getNotRegexStartLength, getRegexStartLength, getRegexStartLength, setIncrement
-
Field Details
-
ARABIC_NUMBER_REGEX
- See Also:
-
DOUBLE_REGEX
- See Also:
-
-
Constructor Details
-
ArabicNumbersListLabelsDetectionAlgorithm
public ArabicNumbersListLabelsDetectionAlgorithm() -
ArabicNumbersListLabelsDetectionAlgorithm
public ArabicNumbersListLabelsDetectionAlgorithm(int increment)
-
-
Method Details
-
isListLabels
- Specified by:
isListLabelsin classListLabelsDetectionAlgorithm
-
getNumberingStyle
- Specified by:
getNumberingStylein classListLabelsDetectionAlgorithm
-
getItemsIntervals
- Specified by:
getItemsIntervalsin classListLabelsDetectionAlgorithm
-
getRegex
- Specified by:
getRegexin classListLabelsDetectionAlgorithm
-
getStringFromNumber
- Specified by:
getStringFromNumberin classListLabelsDetectionAlgorithm
-
getNumberFromString
- Specified by:
getNumberFromStringin classListLabelsDetectionAlgorithm
-
getIntegerFromString
-
recalculatePrefixLength
- Overrides:
recalculatePrefixLengthin classListLabelsDetectionAlgorithm
-