public static void filterAttributes(Set attributeSchemas,String a[]){
  removeAttributeSchemaWithoutI18nKey(attributeSchemas);
  int size=a.length;
  for (Iterator iter=attributeSchemas.iterator(); iter.hasNext(); ) {
    AttributeSchema as=(AttributeSchema)iter.next();
    String any=as.getAny();
    boolean found=false;
    for (int x=0; x < size && !found; x++) {
      found=hasAnyAttribute(any,a[x]);
    }
    if (!found || (getTagClassName(as) == null)) {
      iter.remove();
    }
  }
}

public static void filterAttributes ( Set attributeSchemas , String a [ ] ) { removeAttributeSchemaWithoutI18nKey ( attributeSchemas ) ; int size = a . length ; for ( Iterator iter = attributeSchemas . iterator ( ) ; iter . hasNext ( ) ; ) { AttributeSchema as = ( AttributeSchema ) iter . next ( ) ; String any = as . getAny ( ) ; boolean found = false ; for ( int x = 0 ; x < size && ! found ; x ++ ) { found = hasAnyAttribute ( any , a [ x ] ) ; } if ( ! found || ( getTagClassName ( as ) == null ) ) { iter . remove ( ) ; } } }
removes the attributes that do not match a specified set of any display strings .
