/** * @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 Vulnerability(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Vulnerability(int addr, TOP_Type type) { super(addr, type); readObject(); }
@Test public void test() throws Exception { jCas.setDocumentText( "The second CVE to be issued, cve-1999-0002, describes a buffer overflow in NFS mountd."); processJCas(); assertEquals(1, JCasUtil.select(jCas, Vulnerability.class).size()); Vulnerability bw = JCasUtil.selectByIndex(jCas, Vulnerability.class, 0); assertEquals("cve-1999-0002", bw.getCoveredText()); } }
/** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Vulnerability(JCas jcas) { super(jcas); 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 Vulnerability(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Vulnerability(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Vulnerability(JCas jcas) { super(jcas); readObject(); }