protected TagAttributes convertAttributes(TagAttributes original) { Map<String, TagAttribute> attributes = new HashMap<>(); TagAttribute elementName = createElementName(original.getTag()); attributes.put(elementName.getQName(), elementName); for (TagAttribute attribute : original.getAll()) { TagAttribute converted = convertTagAttribute(attribute); // avoid duplicates attributes.put(converted.getQName(), converted); } return new TagAttributesImpl(attributes.values().toArray(new TagAttribute[attributes.size()])); }
protected TagAttributes convertAttributes(TagAttributes original) { Map<String, TagAttribute> attributes = new HashMap<>(); TagAttribute elementName = createElementName(original.getTag()); attributes.put(elementName.getQName(), elementName); for (TagAttribute attribute : original.getAll()) { TagAttribute converted = convertTagAttribute(attribute); // avoid duplicates attributes.put(converted.getQName(), converted); } return new TagAttributesImpl(attributes.values().toArray(new TagAttribute[attributes.size()])); }
protected TagAttributes convertAttributes(TagAttributes original) { Map<String, TagAttribute> attributes = new HashMap<String, TagAttribute>(); TagAttribute elementName = createElementName(original.getTag()); attributes.put(elementName.getQName(), elementName); for (TagAttribute attribute : original.getAll()) { TagAttribute converted = convertTagAttribute(attribute); // avoid duplicates attributes.put(converted.getQName(), converted); } return new TagAttributesImpl(attributes.values().toArray(new TagAttribute[attributes.size()])); }
protected TagAttributes convertAttributes(TagAttributes original) { Map<String, TagAttribute> attributes = new HashMap<>(); TagAttribute elementName = createElementName(original.getTag()); attributes.put(elementName.getQName(), elementName); for (TagAttribute attribute : original.getAll()) { TagAttribute converted = convertTagAttribute(attribute); // avoid duplicates attributes.put(converted.getQName(), converted); } return new TagAttributesImpl(attributes.values().toArray(new TagAttribute[attributes.size()])); }