public interface TA_EnumerateList extends TA_List
An enumerate list using ASCII and UTF-8 characters.
| Modifier and Type | Method and Description |
|---|---|
static TA_EnumerateList |
create(String description,
TA_Numbering... numbering)
Creates a new enumerate list with levels provided by given numbering schemes.
|
static TA_EnumerateList |
create(TA_Numbering numbering,
String description)
Creates a new enumerate list with unlimited levels for given numbering scheme.
|
String |
getLabel(int level)
Returns the label for a given level.
|
default String |
getLabel(int[] levels,
String separator,
boolean useSepOnLast)
Returns a label constructed of labels for each given level.
|
int |
getMaxLevel()
Returns the max level the style supports.
|
default StrBuilder |
toDoc() |
String getLabel(int level)
Returns the label for a given level. If the list is implementing a nested style, this method will always use the top level style.
level - the level for the requested styleIllegalArgumentException - if requested level is not supporteddefault String getLabel(int[] levels, String separator, boolean useSepOnLast)
Returns a label constructed of labels for each given level.
levels - the levels, each entry marks the number for the given levelseparator - the separator between numbers, can be nulluseSepOnLast - use true if the last number gets a separator, false if notIllegalArgumentException - if any requested level is not supportedint getMaxLevel()
Returns the max level the style supports.
default StrBuilder toDoc()
toDoc in interface HasToDocstatic TA_EnumerateList create(TA_Numbering numbering, String description)
Creates a new enumerate list with unlimited levels for given numbering scheme.
numbering - the numbering scheme to usedescription - list descriptionstatic TA_EnumerateList create(String description, TA_Numbering... numbering)
Creates a new enumerate list with levels provided by given numbering schemes.
description - list descriptionnumbering - an array with numbering schemesCopyright © 2016–2017. All rights reserved.