/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Figure(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
s.setDepth(depth); s.addToIndexes(); Figure f = new Figure(jCas); f.setBegin(cursor); cursor += Integer.valueOf(i).toString().length(); f.setEnd(cursor); f.setDepth(depth); f.addToIndexes();
/** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Figure(JCas jcas) { super(jcas); readObject(); }
@Test public void testFigure() throws UIMAException { final JCas jCas = JCasSingleton.getJCasInstance(); final StructuralAnnotations sa = new StructuralAnnotations(); final Element anchor = new Element(Tag.valueOf("img"), ""); anchor.attr("src", "test"); final AnnotationCollector collector = new AnnotationCollector(); sa.map(jCas, anchor, collector); Annotation fig = collector.getAnnotations().get(0); assertTrue(fig instanceof Figure); assertEquals("test", ((Figure) fig).getTarget()); }
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Figure(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Figure(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Figure(JCas jcas) { super(jcas); readObject(); }
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Figure(int addr, TOP_Type type) { super(addr, type); readObject(); }