/** * Set the RDF 'about' attribute * * @param about * the well-formed attribute * @throws BadFieldValueException * Bad Attribute name (not corresponding to about attribute) */ public void setAbout(Attribute about) throws BadFieldValueException { if (XmpConstants.RDF_NAMESPACE.equals(about.getNamespace()) && XmpConstants.ABOUT_NAME.equals(about.getName())) { setAttribute(about); return; } throw new BadFieldValueException("Attribute 'about' must be named 'rdf:about' or 'about'"); }
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()); } }
for (Attribute attribute : attributes) esimple.setAttributeNS(attribute.getNamespace(), attribute.getName(), attribute.getValue());
if (att.getNamespace().equals(getNamespace()))
/** * Set the RDF 'about' attribute * * @param about * the well-formed attribute * @throws BadFieldValueException * Bad Attribute name (not corresponding to about attribute) */ public void setAbout(Attribute about) throws BadFieldValueException { if (XmpConstants.RDF_NAMESPACE.equals(about.getNamespace()) && XmpConstants.ABOUT_NAME.equals(about.getName())) { setAttribute(about); return; } throw new BadFieldValueException("Attribute 'about' must be named 'rdf:about' or 'about'"); }
/** * Set the RDF 'about' attribute * * @param about * the well-formed attribute * @throws BadFieldValueException * Bad Attribute name (not corresponding to about attribute) */ public void setAbout(Attribute about) throws BadFieldValueException { if (XmpConstants.RDF_NAMESPACE.equals(about.getNamespace()) && XmpConstants.ABOUT_NAME.equals(about.getName())) { setAttribute(about); return; } throw new BadFieldValueException("Attribute 'about' must be named 'rdf:about' or 'about'"); }
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()); } }
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()); } }
for (Attribute attribute : attributes) esimple.setAttributeNS(attribute.getNamespace(), attribute.getName(), attribute.getValue());
for (Attribute attribute : attributes) esimple.setAttributeNS(attribute.getNamespace(), attribute.getName(), attribute.getValue());
if (att.getNamespace().equals(getNamespace()))
if (att.getNamespace().equals(getNamespace()))