public void check ( BioCStructure structure , int offset , String text , BioCStructure ... parents ) { BioCStructure [ ] path = new BioCStructure [ parents . length + 1 ] ; System . arraycopy ( parents , 0 , path , 0 , parents . length ) ; path [ path . length - 1 ] = structure ; String location = log ( path ) ; checkAnnotations ( structure , offset , text , location ) ; checkRelations ( structure , location ) ; }
Check the annotation and relation in the structure .