Class SectionIdGenerator


  • public class SectionIdGenerator
    extends Object
    A generator for section ids. Ids are based on the section hierarchy. Each section must have its "level" defined. Top level sections have level 1. Subsections have level of parent plus one.
    Author:
    Martin Kouba
    • Constructor Detail

      • SectionIdGenerator

        public SectionIdGenerator()
    • Method Detail

      • nextId

        public String nextId​(int level)
        Generate the next section id.
        Parameters:
        level -
        Returns:
      • reset

        public void reset()
        Reset all the counters.