![JAR search and dependency download from the Maven repository](/logo.png)
js.template.xhtml.ArabicNumeralNumbering Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of js-xhtml-template Show documentation
Show all versions of js-xhtml-template Show documentation
Reference implementation for j(s)-lib template API, declarative, natural and based on X(HT)ML language.
The newest version!
package js.template.xhtml;
/**
* Arabic numeral numbering format. It is the most simple numbering formatter and maybe the most common; it just displays index
* value. Its format code is n.
*
*
* <ul data-olist=".">
* <li data-numbering="%n)"></li>
* </ul>
*
*
* As with any numbering formatter this also allows for additional text; above example will render 1), 2) ... . See
* {@link NumberingOperator} for details about numbering format syntax.
*
* @author Iulian Rotaru
*/
final class ArabicNumeralNumbering extends NumberingFormat
{
/**
* Format index as arabic numeral.
*
* @param index index value.
* @return formatted index.
*/
@Override
public String format(int index)
{
return Integer.toString(index);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy