/** * Sets the value of the attribute. * * @see org.w3c.dom.Attr#setValue(String) */ public void setValue(String value) throws DOMException { this.attrValue = (TextImpl) this.getOwnerDocument().createTextNode( value); }
/** * Sets the attribute value. * * @see org.apache.axiom.om.OMAttribute#setAttributeValue(String) */ public void setAttributeValue(String value) { if (isReadonly()) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "NO_MODIFICATION_ALLOWED_ERR", null); throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, msg); } this.attrValue = (TextImpl) this.getOwnerDocument().createTextNode( value); }