Package org.jboss.test.audit.generate
Class SectionIdGenerator
- java.lang.Object
-
- org.jboss.test.audit.generate.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 Summary
Constructors Constructor Description SectionIdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringnextId(int level)Generate the next section id.voidreset()Reset all the counters.
-
-
-
Method Detail
-
nextId
public String nextId(int level)
Generate the next section id.- Parameters:
level-- Returns:
-
reset
public void reset()
Reset all the counters.
-
-