/** * Creates an immutable map of renamed attributes from the collection of * attribute keys. This binds the attributes and checks if they have a * different name under the context of this metadata, and returns any * attributes with an alternate name in the map. */ private ImmutableMap<QName, AttributeKey<?>> getRenamedAttributes() { Builder<QName, AttributeKey<?>> builder = ImmutableMap.builder(); for (AttributeKey<?> key : attributes.values()) { AttributeMetadata<?> bound = bindAttribute(key); QName boundName = bound.getName(); if (!boundName.equals(key.getId())) { builder.put(boundName, key); } } return builder.build(); }
/** * Creates an immutable map of renamed attributes from the collection of * attribute keys. This binds the attributes and checks if they have a * different name under the context of this metadata, and returns any * attributes with an alternate name in the map. */ private ImmutableMap<QName, AttributeKey<?>> getRenamedAttributes() { Builder<QName, AttributeKey<?>> builder = ImmutableMap.builder(); for (AttributeKey<?> key : attributes.values()) { AttributeMetadata<?> bound = bindAttribute(key); QName boundName = bound.getName(); if (!boundName.equals(key.getId())) { builder.put(boundName, key); } } return builder.build(); }
/** * Creates an immutable map of renamed attributes from the collection of * attribute keys. This binds the attributes and checks if they have a * different name under the context of this metadata, and returns any * attributes with an alternate name in the map. */ private ImmutableMap<QName, AttributeKey<?>> getRenamedAttributes() { Builder<QName, AttributeKey<?>> builder = ImmutableMap.builder(); for (AttributeKey<?> key : attributes.values()) { AttributeMetadata<?> bound = bindAttribute(key); QName boundName = bound.getName(); if (!boundName.equals(key.getId())) { builder.put(boundName, key); } } return builder.build(); }