public boolean hasTag ( String key , String ... values ) { Object value = properties . get ( key ) ; if ( value == null ) return false ; // tag present, no values given: success if ( values . length == 0 ) return true ; for ( String val : values ) { if ( val . equals ( value ) ) return true ; } return false ; }
Check that a given tag has one of the specified values . If no values are given just checks for presence of the tag