public class CounterStyle extends Object
Modifier and Type | Field and Description |
---|---|
static CounterStyle |
DECIMAL |
static CounterStyle |
DISC |
static CounterStyle |
LOWER_ALPHA |
static CounterStyle |
LOWER_ROMAN |
static CounterStyle |
UPPER_ALPHA |
static CounterStyle |
UPPER_ROMAN |
Modifier and Type | Method and Description |
---|---|
String |
format(int counterValue) |
String |
format(int counterValue,
boolean withPrefixAndSuffix) |
static CounterStyle |
fromSymbolsFunction(cz.vutbr.web.css.Term<?> term)
Create a CounterStyle from a
symbols() function |
static Map<String,CounterStyle> |
parseCounterStyleRules(Iterable<org.daisy.braille.css.RuleCounterStyle> style)
Create a map of named CounterStyle from a set of
@counter-style rules. |
public static final CounterStyle DECIMAL
public static final CounterStyle LOWER_ALPHA
public static final CounterStyle UPPER_ALPHA
public static final CounterStyle LOWER_ROMAN
public static final CounterStyle UPPER_ROMAN
public static final CounterStyle DISC
public static CounterStyle fromSymbolsFunction(cz.vutbr.web.css.Term<?> term) throws IllegalArgumentException
symbols()
functionIllegalArgumentException
public static Map<String,CounterStyle> parseCounterStyleRules(Iterable<org.daisy.braille.css.RuleCounterStyle> style)
@counter-style
rules.public String format(int counterValue)
public String format(int counterValue, boolean withPrefixAndSuffix)
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.