Class ListItem
- java.lang.Object
-
- org.daisy.dotify.formatter.impl.row.ListItem
-
public final class ListItem extends Object
Provides a list item. List items are immutable.
-
-
Constructor Summary
Constructors Constructor Description ListItem(String label, FormattingTypes.ListStyle type)Creates a list item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabel()Gets the resolved list item label.FormattingTypes.ListStylegetType()Gets the type of list.
-
-
-
Constructor Detail
-
ListItem
public ListItem(String label, FormattingTypes.ListStyle type)
Creates a list item.- Parameters:
label- the resolved list item label, typically a number or a bullettype- the type of list
-
-
Method Detail
-
getLabel
public String getLabel()
Gets the resolved list item label.- Returns:
- the label
-
getType
public FormattingTypes.ListStyle getType()
Gets the type of list.- Returns:
- the type of list
-
-