public AttributeList getAttributes(java.lang.String[] attributes) { if (attributes == null) throw new IllegalArgumentException("null array"); AttributeList list = new AttributeList(); for (int i = 0; i < attributes.length; ++i) { try { list.add(new Attribute(attributes[i], getAttribute(attributes[i]))); } catch (Throwable ignored) { // if the attribute could not be retrieved, skip it } } return list; }
public AttributeList getAttributes(java.lang.String[] attributes) { if (attributes == null) throw new IllegalArgumentException("null array"); AttributeList list = new AttributeList(); for (int i = 0; i < attributes.length; ++i) { try { list.add(new Attribute(attributes[i], getAttribute(attributes[i]))); } catch (Throwable ignored) { // if the attribute could not be retrieved, skip it } } return list; }