Class ArabicNumbersListLabelsDetectionAlgorithm
- java.lang.Object
-
- org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ListLabelsDetectionAlgorithm
-
- org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ArabicNumbersListLabelsDetectionAlgorithm
-
public class ArabicNumbersListLabelsDetectionAlgorithm extends ListLabelsDetectionAlgorithm
-
-
Field Summary
Fields Modifier and Type Field Description static StringARABIC_NUMBER_REGEX
-
Constructor Summary
Constructors Constructor Description ArabicNumbersListLabelsDetectionAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ListInterval>getItemsIntervals(List<String> items)protected IntegergetNumberFromString(String string)protected StringgetRegex()protected StringgetStringFromNumber(Integer number)booleanisListLabels(List<String> labels, int commonStartLength, int commonEndLength)-
Methods inherited from class org.verapdf.wcag.algorithms.semanticalgorithms.utils.listLabelsDetection.ListLabelsDetectionAlgorithm
getCommonStartLength, getNotRegexEndLength, getNotRegexStartLength, getRegexStartLength, getRegexStartLength
-
-
-
-
Field Detail
-
ARABIC_NUMBER_REGEX
public static final String ARABIC_NUMBER_REGEX
- See Also:
- Constant Field Values
-
-
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
-
getRegex
protected String getRegex()
- Specified by:
getRegexin classListLabelsDetectionAlgorithm
-
getStringFromNumber
protected String getStringFromNumber(Integer number)
- Specified by:
getStringFromNumberin classListLabelsDetectionAlgorithm
-
getNumberFromString
protected Integer getNumberFromString(String string)
- Specified by:
getNumberFromStringin classListLabelsDetectionAlgorithm
-
-