public String [ ] getContext ( Object o ) { String s = ( String ) o ; int prevIndex = - 1 ; int index = s . indexOf ( ' ' ) ; List cuts = new ArrayList ( ) ; while ( index != - 1 ) { cuts . add ( s . substring ( prevIndex + 1 , index ) ) ; prevIndex = index ; index = s . indexOf ( ' ' , ++ index ) ; } cuts . add ( s . substring ( prevIndex + 1 , s . length ( ) ) ) ; return ( String [ ] ) cuts . toArray ( new String [ cuts . size ( ) ] ) ; }
Builds up the list of contextual predicates given a String .