| 254 | } |
| 255 | |
| 256 | @Override |
| 257 | public AttributeList getAttributes(String @Nullable [] attributes) { |
| 258 | AttributeList resultList = new AttributeList(); |
| 259 | |
| 260 | // if attributeNames is empty, return an empty result list |
| 261 | if (attributes == null || attributes.length == 0) return resultList; |
| 262 | |
| 263 | for (String attribute : attributes) { |
| 264 | Object value = getAttribute(attribute); |
| 265 | resultList.add(new Attribute(attribute, value)); |
| 266 | } |
| 267 | |
| 268 | return resultList; |
| 269 | } |
| 270 | |
| 271 | @Override |
| 272 | public @Nullable AttributeList setAttributes(AttributeList attributes) { |