public Attribute createAttribute(Element owner, QName qname, String value) { return proxy.createAttribute(owner, qname, value); }
public Attribute createAttribute(Element owner, String name, String value) { return proxy.createAttribute(owner, name, value); }
public static Attribute createAttribute(Element owner, String name, String value) { return getDocumentFactory().createAttribute(owner, name, value); }
public static Attribute createAttribute(Element owner, QName qname, String value) { return getDocumentFactory().createAttribute(owner, qname, value); }
public Attribute createAttribute(Element owner, String name, String value) { return createAttribute(owner, createQName(name), value); }
/** * Constructs a new DOM4J Attribute from the provided StAX Attribute event. * * @param elem * DOCUMENT ME! * @param attr * The Attribute event from which to construct the new DOM4J * Attribute. * * @return The Attribute constructed from the provided Attribute event. */ public org.dom4j.Attribute createAttribute(Element elem, Attribute attr) { return factory.createAttribute(elem, createQName(attr.getName()), attr .getValue()); }
public Attribute createAttribute(Element owner, QName qname, String value) { XSDatatype dataType = getAttributeXSDatatype(qname); if (dataType == null) { return super.createAttribute(owner, qname, value); } else { return new DatatypeAttribute(qname, dataType, value); } } }
public org.w3c.dom.Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { QName qname = getDocumentFactory().createQName(qualifiedName, namespaceURI); return (org.w3c.dom.Attr) getDocumentFactory().createAttribute(null, qname, null); }
public Attr createAttribute(String name) throws DOMException { QName qname = getDocumentFactory().createQName(name); return (Attr) getDocumentFactory().createAttribute(null, qname, ""); }
attributeURI, attributeLocalName, name); add(factory.createAttribute(this, attributeQName, attributeValue)); attributeLocalName, attributeName); Attribute attribute = factory.createAttribute(this, attributeQName, attributeValue);
public Attribute createAttribute(Element owner, QName qname, String value) { if (autoLoadSchema && qname.equals(XSI_NO_SCHEMA_LOCATION)) { Document document = (owner != null) ? owner.getDocument() : null; loadSchema(document, value); } else if (autoLoadSchema && qname.equals(XSI_SCHEMA_LOCATION)) { Document document = (owner != null) ? owner.getDocument() : null; String uri = value.substring(0, value.indexOf(' ')); Namespace namespace = owner.getNamespaceForURI(uri); loadSchema(document, value.substring(value.indexOf(' ') + 1), namespace); } return super.createAttribute(owner, qname, value); }
public Element addAttribute(QName qName, String value) { // adding a null value is equivalent to removing the attribute Attribute attribute = attribute(qName); if (value != null) { if (attribute == null) { add(getDocumentFactory().createAttribute(this, qName, value)); } else if (attribute.isReadOnly()) { remove(attribute); add(getDocumentFactory().createAttribute(this, qName, value)); } else { attribute.setValue(value); } } else if (attribute != null) { remove(attribute); } return this; }
public Element addAttribute(String name, String value) { // adding a null value is equivalent to removing the attribute Attribute attribute = attribute(name); if (value != null) { if (attribute == null) { add(getDocumentFactory().createAttribute(this, name, value)); } else if (attribute.isReadOnly()) { remove(attribute); add(getDocumentFactory().createAttribute(this, name, value)); } else { attribute.setValue(value); } } else if (attribute != null) { remove(attribute); } return this; }
public static Attribute createAttribute(Element owner, QName qname, String value) { return getDocumentFactory().createAttribute(owner, qname, value); }
public Attribute createAttribute(Element owner, QName qname, String value) { XSDatatype dataType = getAttributeXSDatatype(qname); if (dataType == null) { return super.createAttribute(owner, qname, value); } else { return new DatatypeAttribute(qname, dataType, value); } } }
public Attribute createAttribute(Element owner, QName qname, String value) { XSDatatype dataType = getAttributeXSDatatype(qname); if (dataType == null) { return super.createAttribute(owner, qname, value); } else { return new DatatypeAttribute(qname, dataType, value); } } }
public Attribute createAttribute(Element owner, QName qname, String value) { XSDatatype dataType = getAttributeXSDatatype(qname); if (dataType == null) { return super.createAttribute(owner, qname, value); } else { return new DatatypeAttribute(qname, dataType, value); } } }
public org.w3c.dom.Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { QName qname = getDocumentFactory().createQName(qualifiedName, namespaceURI); return (org.w3c.dom.Attr) getDocumentFactory().createAttribute(null, qname, null); }
public org.w3c.dom.Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { QName qname = getDocumentFactory().createQName(qualifiedName, namespaceURI); return (org.w3c.dom.Attr) getDocumentFactory().createAttribute(null, qname, null); }
public org.w3c.dom.Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { QName qname = getDocumentFactory().createQName(qualifiedName, namespaceURI); return (org.w3c.dom.Attr) getDocumentFactory().createAttribute(null, qname, null); }