public boolean hasAttribute ( String key ) { if ( featindex . containsKey ( key ) ) { Map < String , List < FeatureI > > mappa = featindex . get ( key ) ; if ( mappa != null && mappa . size ( ) > 0 ) return true ; return false ; } for ( FeatureI f : this ) { if ( f . hasAttribute ( key ) ) { return true ; } } return false ; }
Check if any feature in list has the specified attribute key .