/** * Create a Heading with the given level * * @param jCas the jCas * @param level the level of the heading * @return the Heading */ private Heading createHeading(final JCas jCas, final int level) { final Heading h = new Heading(jCas); h.setLevel(level); return h; } }
/** * Create a Heading with the given level * * @param jCas the jCas * @param level the level of the heading * @return the Heading */ private Heading createHeading(final JCas jCas, final int level) { final Heading h = new Heading(jCas); h.setLevel(level); return h; } }
section.setDepth(depth); heading1 = new Heading(jCas); heading1.setBegin(cursor); heading1.setDepth(++depth); paragraph1.addToIndexes(); heading2 = new Heading(jCas); heading2.setBegin(++cursor); heading2.setDepth(depth); paragraph2.addToIndexes(); heading3 = new Heading(jCas); heading3.setBegin(++cursor); heading3.setDepth(depth);