public List < String > getAllWFIdsFromTerms ( KAFDocument kaf ) { List < Term > terms = kaf . getTerms ( ) ; List < String > wfTermIds = new ArrayList <> ( ) ; for ( int i = 0 ; i < terms . size ( ) ; i ++ ) { List < WF > sentTerms = terms . get ( i ) . getWFs ( ) ; for ( WF form : sentTerms ) { wfTermIds . add ( form . getId ( ) ) ; } } return wfTermIds ; }
Get all the WF ids for the terms contained in the KAFDocument .