argn.isOwned(true); int i = findNamePoint(argn.getNamespaceURI(), argn.getLocalName()); if (i >= 0) { nodes.set(i, arg); i = findNamePoint(argn.getNodeName(),0); if (i >= 0) { nodes.add(i, arg);
for (int n = 0; n < dsize; ++n) { AttrImpl d = (AttrImpl) defaults.nodes.get(n); int i = findNamePoint(d.getNodeName(), 0); if (i < 0) { i = -1 - i;
/** * Internal removeNamedItem method allowing to specify whether an exception * must be thrown if the specified name is not found. */ final protected Node internalRemoveNamedItem(String name, boolean raiseEx){ if (isReadOnly()) { String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NO_MODIFICATION_ALLOWED_ERR", null); throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, msg); } int i = findNamePoint(name,0); if (i < 0) { if (raiseEx) { String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_FOUND_ERR", null); throw new DOMException(DOMException.NOT_FOUND_ERR, msg); } else { return null; } } return remove((AttrImpl)nodes.get(i), i, true); } // internalRemoveNamedItem(String,boolean):Node
argn.isOwned(true); int i = findNamePoint(argn.getNamespaceURI(), argn.getLocalName()); AttrImpl previous = null; if (i >= 0) { i = findNamePoint(arg.getNodeName(),0); if (i >=0) { previous = (AttrImpl) nodes.get(i);
throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, msg); int i = findNamePoint(namespaceURI, name); if (i < 0) { if (raiseEx) { && (d = defaults.getNamedItem(nodeName)) != null) int j = findNamePoint(nodeName,0); if (j>=0 && findNamePoint(nodeName, j+1) < 0) { NodeImpl clone = (NodeImpl)d.cloneNode(true); clone.ownerNode = ownerNode;
argn.isOwned(true); int i = findNamePoint(argn.getNodeName(),0); AttrImpl previous = null; if (i >= 0) {
if (defaults != null && (d = defaults.getNamedItem(name)) != null && findNamePoint(name, index+1) < 0) { NodeImpl clone = (NodeImpl)d.cloneNode(true); if (d.getLocalName() !=null){