public void map ( Story story , MetaFilter metaFilter ) { if ( metaFilter . allow ( story . getMeta ( ) ) ) { boolean allowed = false ; for ( Scenario scenario : story . getScenarios ( ) ) { // scenario also inherits meta from story Meta inherited = scenario . getMeta ( ) . inheritFrom ( story . getMeta ( ) ) ; if ( metaFilter . allow ( inherited ) ) { allowed = true ; break ; } } if ( allowed ) { add ( metaFilter . asString ( ) , story ) ; } } }
Maps a story if it is allowed by the meta filter