/** * {@inheritDoc} */ @Override public DomAttr setNamedItem(final Node node) { return put(node.getLocalName(), (DomAttr) node); }
/** * {@inheritDoc} */ @Override public Node setNamedItemNS(final Node node) throws DOMException { return put(node.getNodeName(), (DomAttr) node); }
/** * {@inheritDoc} */ @Override public DomAttr setNamedItem(final Node node) { return put(node.getLocalName(), (DomAttr) node); }
/** * {@inheritDoc} */ @Override public Node setNamedItemNS(final Node node) throws DOMException { return put(node.getNodeName(), (DomAttr) node); }
/** * {@inheritDoc} */ @Override public void putAll(final Map<? extends String, ? extends DomAttr> t) { // add one after the other to save the positions for (final Map.Entry<? extends String, ? extends DomAttr> entry : t.entrySet()) { put(entry.getKey(), entry.getValue()); } }
/** * {@inheritDoc} */ @Override public void putAll(final Map< ? extends String, ? extends DomAttr> t) { // add one after the other to save the positions for (final Map.Entry< ? extends String, ? extends DomAttr> entry : t.entrySet()) { put(entry.getKey(), entry.getValue()); } }
/** * {@inheritDoc} */ @Override public void putAll(final Map< ? extends String, ? extends DomAttr> t) { // add one after the other to save the positions for (final Map.Entry< ? extends String, ? extends DomAttr> entry : t.entrySet()) { put(entry.getKey(), entry.getValue()); } }
/** * {@inheritDoc} */ @Override public void putAll(final Map< ? extends String, ? extends DomAttr> t) { // add one after the other to save the positions for (final Map.Entry< ? extends String, ? extends DomAttr> entry : t.entrySet()) { put(entry.getKey(), entry.getValue()); } }
/** * {@inheritDoc} */ @Override public void putAll(final Map<? extends String, ? extends DomAttr> t) { // add one after the other to save the positions for (final Map.Entry<? extends String, ? extends DomAttr> entry : t.entrySet()) { put(entry.getKey(), entry.getValue()); } }
/** * {@inheritDoc} */ public DomAttr setNamedItem(final Node node) { return put(fixName(node.getLocalName()), (DomAttr) node); }
/** * {@inheritDoc} */ public Node setNamedItemNS(final Node node) throws DOMException { return put(fixName(node.getNodeName()), (DomAttr) node); }
/** * {@inheritDoc} */ public Node setNamedItemNS(final Node node) throws DOMException { return put(fixName(node.getNodeName()), (DomAttr) node); }
/** * {@inheritDoc} */ public DomAttr setNamedItem(final Node node) { return put(fixName(node.getLocalName()), (DomAttr) node); }
/** * {@inheritDoc} */ public DomAttr setNamedItem(final Node node) { return put(fixName(node.getLocalName()), (DomAttr) node); }
/** * {@inheritDoc} */ public Node setNamedItemNS(final Node node) throws DOMException { return put(fixName(node.getNodeName()), (DomAttr) node); }
/** * Sets the value of the attribute specified by namespace and qualified name. * * @param namespaceURI the URI that identifies an XML namespace * @param qualifiedName the qualified name (prefix:local) of the attribute * @param attributeValue the value of the attribute * @param notifyAttributeChangeListeners to notify the associated {@link HtmlAttributeChangeListener}s * @param notifyMutationObservers to notify {@code MutationObserver}s or not */ protected void setAttributeNS(final String namespaceURI, final String qualifiedName, final String attributeValue, final boolean notifyAttributeChangeListeners, final boolean notifyMutationObservers) { final String value = attributeValue; final DomAttr newAttr = new DomAttr(getPage(), namespaceURI, qualifiedName, value, true); newAttr.setParentNode(this); attributes_.put(qualifiedName, newAttr); if (namespaceURI != null) { namespaces_.put(namespaceURI, newAttr.getPrefix()); } }
/** * Sets the value of the attribute specified by namespace and qualified name. * * @param namespaceURI the URI that identifies an XML namespace * @param qualifiedName the qualified name (prefix:local) of the attribute * @param attributeValue the value of the attribute * @param notifyAttributeChangeListeners to notify the associated {@link HtmlAttributeChangeListener}s * @param notifyMutationObservers to notify {@code MutationObserver}s or not */ protected void setAttributeNS(final String namespaceURI, final String qualifiedName, final String attributeValue, final boolean notifyAttributeChangeListeners, final boolean notifyMutationObservers) { final String value = attributeValue; final DomAttr newAttr = new DomAttr(getPage(), namespaceURI, qualifiedName, value, true); newAttr.setParentNode(this); attributes_.put(qualifiedName, newAttr); if (namespaceURI != null) { namespaces_.put(namespaceURI, newAttr.getPrefix()); } }
/** * Sets the value of the attribute specified by namespace and qualified name. * * @param namespaceURI the URI that identifies an XML namespace * @param qualifiedName the qualified name (prefix:local) of the attribute * @param attributeValue the value of the attribute */ public void setAttributeNS(final String namespaceURI, final String qualifiedName, final String attributeValue) { final String value = attributeValue; if (attributes_ == NamedAttrNodeMapImpl.EMPTY_MAP) { attributes_ = new NamedAttrNodeMapImpl(this, isAttributeCaseSensitive()); } final DomAttr newAttr = new DomAttr(getPage(), namespaceURI, qualifiedName, value); newAttr.setParentNode(this); attributes_.put(qualifiedName, newAttr); if (namespaceURI != null) { namespaces().put(namespaceURI, newAttr.getPrefix()); } }
/** * Sets the value of the attribute specified by namespace and qualified name. * * @param namespaceURI the URI that identifies an XML namespace * @param qualifiedName the qualified name (prefix:local) of the attribute * @param attributeValue the value of the attribute */ public void setAttributeNS(final String namespaceURI, final String qualifiedName, final String attributeValue) { final String value = attributeValue; if (attributes_ == NamedAttrNodeMapImpl.EMPTY_MAP) { attributes_ = new NamedAttrNodeMapImpl(this, isAttributeCaseSensitive()); } final DomAttr newAttr = new DomAttr(getPage(), namespaceURI, qualifiedName, value); newAttr.setParentNode(this); attributes_.put(qualifiedName, newAttr); if (namespaceURI != null) { namespaces().put(namespaceURI, newAttr.getPrefix()); } }
/** * Sets the value of the attribute specified by namespace and qualified name. * * @param namespaceURI the URI that identifies an XML namespace * @param qualifiedName the qualified name (prefix:local) of the attribute * @param attributeValue the value of the attribute */ public void setAttributeNS(final String namespaceURI, final String qualifiedName, final String attributeValue) { final String value = attributeValue; if (attributes_ == NamedAttrNodeMapImpl.EMPTY_MAP) { attributes_ = new NamedAttrNodeMapImpl(this, isAttributeCaseSensitive()); } final DomAttr newAttr = new DomAttr(getPage(), namespaceURI, qualifiedName, value); newAttr.setParentNode(this); attributes_.put(qualifiedName, newAttr); if (namespaceURI != null) { namespaces().put(namespaceURI, newAttr.getPrefix()); } }