@ Override public boolean includeRelation ( SRelation relation ) { Map < String , Set < String > > displayedRelAnnotations = new HashMap < String , Set < String > > ( ) ; // if no configuration set output the relation if ( relation instanceof SPointingRelation ) { if ( configurations . get ( 1 ) == null ) { return true ; } else { displayedRelAnnotations = displayedPointingRelAnnotations ; } } if ( relation instanceof SSpanningRelation ) { if ( configurations . get ( 2 ) == null ) { return true ; } else { displayedRelAnnotations = displayedSpanningRelAnnotations ; } } if ( relation instanceof SDominanceRelation ) { if ( configurations . get ( 3 ) == null ) { return true ; } else { displayedRelAnnotations = displayedDominanceRelAnnotations ; } } Set < SAnnotation > relAnnotations = relation . getAnnotations ( ) ; return includeObject ( relAnnotations , displayedRelAnnotations ) ; }
Implements the includeRelation method of the org . corpus_tools . salt . util . ExportFilter interface .