public class Sections extends java.util.ArrayList<SectionHeading>
Constructor and Description |
---|
Sections() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateToc(java.lang.String levelInclusions) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
public java.lang.String generateToc(java.lang.String levelInclusions)
levelInclusions
- char array of length 6. Each char is just
checked for 'x' to indicate to skip that level in the TOC.
If the char for an index is not 'x', then a record for that
heading/section will be written according to the SectionHeading
record.