org.jboss.test.audit.generate
Class SectionIdGenerator

java.lang.Object
  extended by 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
SectionIdGenerator()
           
 
Method Summary
 String nextId(int level)
          Generate the next section id.
 void reset()
          Reset all the counters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2009-2013. All Rights Reserved.