Class PageUtil


  • public abstract class PageUtil
    extends java.lang.Object
    The PageUtil class.
    • Constructor Summary

      Constructors 
      Constructor Description
      PageUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String encode​(java.lang.String text)
      Encode the text to avoid XML reserved characters.
      static java.lang.String getLinkId​(java.lang.String title)
      Gets the id of the link.
      static java.lang.String getPageNumber​(Chapter page)
      Get the page index number.
      static java.lang.String getRomanNumber​(Chapter page)
      Get the preface index number.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PageUtil

        public PageUtil()
    • 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 -