/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getAttributes()}. */ public NamedNodeMap getAttributes() { return (attributes == null) ? attributes = createAttributes() : attributes; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getAttributes()}. */ public NamedNodeMap getAttributes() { return (attributes == null) ? attributes = createAttributes() : attributes; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getAttributes()}. */ public NamedNodeMap getAttributes() { return (attributes == null) ? attributes = createAttributes() : attributes; }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttributeNode(Attr)}. */ public Attr setAttributeNode(Attr newAttr) throws DOMException { if (newAttr == null) { return null; } if (attributes == null) { attributes = createAttributes(); } return (Attr)attributes.setNamedItemNS(newAttr); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttributeNodeNS(Attr)}. */ public Attr setAttributeNodeNS(Attr newAttr) throws DOMException { if (newAttr == null) { return null; } if (attributes == null) { attributes = createAttributes(); } return (Attr)attributes.setNamedItemNS(newAttr); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttributeNodeNS(Attr)}. */ public Attr setAttributeNodeNS(Attr newAttr) throws DOMException { if (newAttr == null) { return null; } if (attributes == null) { attributes = createAttributes(); } return (Attr)attributes.setNamedItemNS(newAttr); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttributeNode(Attr)}. */ public Attr setAttributeNode(Attr newAttr) throws DOMException { if (newAttr == null) { return null; } if (attributes == null) { attributes = createAttributes(); } return (Attr)attributes.setNamedItemNS(newAttr); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttributeNode(Attr)}. */ public Attr setAttributeNode(Attr newAttr) throws DOMException { if (newAttr == null) { return null; } if (attributes == null) { attributes = createAttributes(); } return (Attr)attributes.setNamedItemNS(newAttr); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttributeNodeNS(Attr)}. */ public Attr setAttributeNodeNS(Attr newAttr) throws DOMException { if (newAttr == null) { return null; } if (attributes == null) { attributes = createAttributes(); } return (Attr)attributes.setNamedItemNS(newAttr); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttribute(String,String)}. */ public void setAttribute(String name, String value) throws DOMException { if (attributes == null) { attributes = createAttributes(); } Attr attr = getAttributeNode(name); if (attr == null) { attr = getOwnerDocument().createAttribute(name); attr.setValue(value); attributes.setNamedItem(attr); } else { attr.setValue(value); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttribute(String,String)}. */ public void setAttribute(String name, String value) throws DOMException { if (attributes == null) { attributes = createAttributes(); } Attr attr = getAttributeNode(name); if (attr == null) { attr = getOwnerDocument().createAttribute(name); attr.setValue(value); attributes.setNamedItem(attr); } else { attr.setValue(value); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttribute(String,String)}. */ public void setAttribute(String name, String value) throws DOMException { if (attributes == null) { attributes = createAttributes(); } Attr attr = getAttributeNode(name); if (attr == null) { attr = getOwnerDocument().createAttribute(name); attr.setValue(value); attributes.setNamedItem(attr); } else { attr.setValue(value); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttributeNS(String,String,String)}. */ public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException { if (attributes == null) { attributes = createAttributes(); } if (namespaceURI != null && namespaceURI.length() == 0) { namespaceURI = null; } Attr attr = getAttributeNodeNS(namespaceURI, qualifiedName); if (attr == null) { attr = getOwnerDocument().createAttributeNS(namespaceURI, qualifiedName); attr.setValue(value); attributes.setNamedItemNS(attr); } else { attr.setValue(value); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttributeNS(String,String,String)}. */ public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException { if (attributes == null) { attributes = createAttributes(); } if (namespaceURI != null && namespaceURI.length() == 0) { namespaceURI = null; } Attr attr = getAttributeNodeNS(namespaceURI, qualifiedName); if (attr == null) { attr = getOwnerDocument().createAttributeNS(namespaceURI, qualifiedName); attr.setValue(value); attributes.setNamedItemNS(attr); } else { attr.setValue(value); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Element#setAttributeNS(String,String,String)}. */ public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException { if (attributes == null) { attributes = createAttributes(); } if (namespaceURI != null && namespaceURI.length() == 0) { namespaceURI = null; } Attr attr = getAttributeNodeNS(namespaceURI, qualifiedName); if (attr == null) { attr = getOwnerDocument().createAttributeNS(namespaceURI, qualifiedName); attr.setValue(value); attributes.setNamedItemNS(attr); } else { attr.setValue(value); } }