Class ListUtils
- java.lang.Object
-
- org.verapdf.wcag.algorithms.semanticalgorithms.utils.ListUtils
-
public class ListUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static doubleLIST_LABEL_HEIGHT_EPSILONstatic doubleONE_COLUMN_EPSILON
-
Constructor Summary
Constructors Constructor Description ListUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckChildrenListInterval(ListIntervalsCollection listIntervalsCollection, ListInterval listInterval, List<INode> children)static Set<ListInterval>getChildrenListIntervals(Set<ListInterval> listIntervals, List<INode> children)static booleanisInitialListNode(INode node)static booleanisList(Table table)static booleanisListImageLabels(List<BoundingBox> listLabels)static booleanisListNode(INode node)static voidupdateTreeWithRecognizedList(INode node, ListInterval listInterval)static voidupdateTreeWithRecognizedListItem(INode item, Long listId)static voidupdateTreeWithRecognizedLists(INode node, Set<ListInterval> listIntervals)
-
-
-
Field Detail
-
LIST_LABEL_HEIGHT_EPSILON
public static final double LIST_LABEL_HEIGHT_EPSILON
- See Also:
- Constant Field Values
-
ONE_COLUMN_EPSILON
public static final double ONE_COLUMN_EPSILON
- See Also:
- Constant Field Values
-
-
Method Detail
-
isListNode
public static boolean isListNode(INode node)
-
isInitialListNode
public static boolean isInitialListNode(INode node)
-
isList
public static boolean isList(Table table)
-
isListImageLabels
public static boolean isListImageLabels(List<BoundingBox> listLabels)
-
updateTreeWithRecognizedLists
public static void updateTreeWithRecognizedLists(INode node, Set<ListInterval> listIntervals)
-
updateTreeWithRecognizedList
public static void updateTreeWithRecognizedList(INode node, ListInterval listInterval)
-
updateTreeWithRecognizedListItem
public static void updateTreeWithRecognizedListItem(INode item, Long listId)
-
getChildrenListIntervals
public static Set<ListInterval> getChildrenListIntervals(Set<ListInterval> listIntervals, List<INode> children)
-
checkChildrenListInterval
public static void checkChildrenListInterval(ListIntervalsCollection listIntervalsCollection, ListInterval listInterval, List<INode> children)
-
-