package org.gcube.informationsystem.utils.documentation.rst; /** * @author Luca Frosini (ISTI - CNR) */ public class Section { public enum SectionType { HEADING_1(true, "*"), HEADING_2(false, "="), HEADING_3(false, "-"), HEADING_4(false, "^"); boolean both; String separator; private SectionType(boolean both, String separator) { this.both = both; this.separator = separator; } } protected StringBuffer getSectionSeparation(String separator, int lenght) { StringBuffer stringBuffer = new StringBuffer(); for(int i=0; i