List<Attribute> attributes = property.getAllAttributes(); List<AbstractField> fields = property.getAllProperties();
private void fillElementWithAttributes(Element target, AbstractComplexProperty property) { // normalize the attributes list List<Attribute> toSerialize = normalizeAttributes(property); for (Attribute attribute : toSerialize) { if (XmpConstants.RDF_NAMESPACE.equals(attribute.getNamespace())) { target.setAttribute(XmpConstants.DEFAULT_RDF_PREFIX + ":" + attribute.getName(), attribute.getValue()); } else { target.setAttribute(attribute.getName(), attribute.getValue()); } } for (Map.Entry<String, String> ns : property.getAllNamespacesWithPrefix().entrySet()) { target.setAttribute(XMLConstants.XMLNS_ATTRIBUTE + ":" + ns.getValue(), ns.getKey()); } }
List<Attribute> attributes = property.getAllAttributes(); List<AbstractField> fields = property.getAllProperties();
private void fillElementWithAttributes(Element target, AbstractComplexProperty property) { // normalize the attributes list List<Attribute> toSerialize = normalizeAttributes(property); for (Attribute attribute : toSerialize) { if (XmpConstants.RDF_NAMESPACE.equals(attribute.getNamespace())) { target.setAttribute(XmpConstants.DEFAULT_RDF_PREFIX + ":" + attribute.getName(), attribute.getValue()); } else { target.setAttribute(attribute.getName(), attribute.getValue()); } } for (Map.Entry<String, String> ns : property.getAllNamespacesWithPrefix().entrySet()) { target.setAttribute(XMLConstants.XMLNS_ATTRIBUTE + ":" + ns.getValue(), ns.getKey()); } }
List<Attribute> attributes = property.getAllAttributes(); List<AbstractField> fields = property.getAllProperties();
private void fillElementWithAttributes(Element target, AbstractComplexProperty property) { // normalize the attributes list List<Attribute> toSerialize = normalizeAttributes(property); for (Attribute attribute : toSerialize) { if (XmpConstants.RDF_NAMESPACE.equals(attribute.getNamespace())) { target.setAttribute(XmpConstants.DEFAULT_RDF_PREFIX + ":" + attribute.getName(), attribute.getValue()); } else { target.setAttribute(attribute.getName(), attribute.getValue()); } } for (Map.Entry<String, String> ns : property.getAllNamespacesWithPrefix().entrySet()) { target.setAttribute(XMLConstants.XMLNS_ATTRIBUTE + ":" + ns.getValue(), ns.getKey()); } }