| | |
| | | import javax.xml.bind.annotation.adapters.XmlAdapter; |
| | | import javax.xml.namespace.QName; |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | AttributeWrapperType(Map<String, Object> attributes) { |
| | | this.elements = new ArrayList<>(); |
| | | for (Map.Entry<String, Object> entry : attributes.entrySet()) { |
| | | if (entry.getValue() instanceof List) { |
| | | for (Object item : ((List) entry.getValue())) { |
| | | if (entry.getValue() instanceof Collection) { |
| | | for (Object item : ((Collection) entry.getValue())) { |
| | | addElement(entry.getKey(), item); |
| | | } |
| | | } else { |