public List < WarningsGroup > getByComponent ( Class < ? extends ICalComponent > componentClass ) { List < WarningsGroup > warnings = new ArrayList < WarningsGroup > ( ) ; for ( WarningsGroup group : this . warnings ) { ICalComponent component = group . getComponent ( ) ; if ( component == null ) { continue ; } if ( componentClass == component . getClass ( ) ) { warnings . add ( group ) ; } } return warnings ; }
Gets all validation warnings of a given component .