Package it.smartio.docs.util
Class PageUtil
- java.lang.Object
-
- it.smartio.docs.util.PageUtil
-
public abstract class PageUtil extends java.lang.ObjectThePageUtilclass.
-
-
Constructor Summary
Constructors Constructor Description PageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringencode(java.lang.String text)Encode the text to avoid XML reserved characters.static java.lang.StringgetLinkId(java.lang.String title)Gets the id of the link.static java.lang.StringgetPageNumber(Chapter page)Get the page index number.static java.lang.StringgetRomanNumber(Chapter page)Get the preface index number.
-
-
-
Method Detail
-
encode
public static java.lang.String encode(java.lang.String text)
Encode the text to avoid XML reserved characters.- Parameters:
text-
-
getPageNumber
public static java.lang.String getPageNumber(Chapter page)
Get the page index number.- Parameters:
page-
-
getRomanNumber
public static java.lang.String getRomanNumber(Chapter page)
Get the preface index number.- Parameters:
page-
-
getLinkId
public static java.lang.String getLinkId(java.lang.String title)
Gets the id of the link.- Parameters:
title-
-
-