/libcore/luni/src/test/java/tests/org/w3c/dom/ |
H A D | SetAttributeNodeNS.java | 34 * The "setAttributeNode(newAttr)" method raises an "INUSE_ATTRIBUTE_ERR 35 * DOMException if the "newAttr" is already an attribute of another element. 39 * "setAttributeNodeNS(newAttr)" methods are invoked to create and add a new 40 * attribute to the newly created Element. The "setAttributeNodeNS(newAttr)" 84 String qualifiedName = "emp:newAttr"; 87 Attr newAttr; 97 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName); 98 newElement.setAttributeNodeNS(newAttr); 103 ((Element) /* Node */testAddr).setAttributeNodeNS(newAttr); 120 // Attr newAttr; [all...] |
H A D | OwnerElement.java | 93 Attr newAttr; 96 newAttr = doc.createAttribute("newAttribute"); 97 elementNode = newAttr.getOwnerElement();
|
H A D | GetNamedItemNS.java | 77 Attr newAttr; 82 newAttr = (Attr) attributes.getNamedItemNS(namespaceURI, localName); 83 assertNull("throw_Null", newAttr);
|
H A D | RemoveNamedItemNS.java | 82 Attr newAttr; 91 newAttr = (Attr) attributes.getNamedItem("dmstc:domestic"); 92 assertNull("nodeRemoved", newAttr);
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
H A D | createAttributeNS05.java | 70 Attr newAttr; 73 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName); 74 attrName = newAttr.getName();
|
H A D | getNamedItemNS02.java | 76 Attr newAttr; 81 newAttr = (Attr) attributes.getNamedItemNS(namespaceURI, localName); 82 assertNull("throw_Null", newAttr);
|
H A D | ownerElement02.java | 67 Attr newAttr; 70 newAttr = doc.createAttribute("newAttribute"); 71 elementNode = newAttr.getOwnerElement();
|
H A D | setAttributeNodeNS03.java | 34 * The "setAttributeNodeNS(newAttr)" adds a new attribute. 71 String qualifiedName = "emp:newAttr"; 75 Attr newAttr; 81 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName); 82 newAddrAttr = ((Element) /*Node */testAddr).setAttributeNodeNS(newAttr);
|
H A D | elementsetattributenodens02.java | 77 Attr newAttr; 89 newAttr = element2.setAttributeNodeNS(attributeCloned); 90 attrName = newAttr.getNodeName(); 91 attrValue = newAttr.getNodeValue();
|
H A D | setAttributeNodeNS01.java | 34 * The "setAttributeNode(newAttr)" method raises an 35 * "INUSE_ATTRIBUTE_ERR DOMException if the "newAttr" 40 * and "setAttributeNodeNS(newAttr)" methods are invoked 42 * Element. The "setAttributeNodeNS(newAttr)" method is 75 String qualifiedName = "emp:newAttr"; 78 Attr newAttr; 90 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName); 91 setAttr1 = newElement.setAttributeNodeNS(newAttr); 96 setAttr2 = ((Element) /*Node */testAddr).setAttributeNodeNS(newAttr);
|
H A D | createAttributeNS01.java | 73 Attr newAttr; 79 newAttr = doc.createAttributeNS(namespaceURI, malformedName);
|
H A D | createAttributeNS02.java | 73 Attr newAttr; 79 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName);
|
H A D | createAttributeNS04.java | 75 Attr newAttr; 81 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName);
|
H A D | createAttributeNS06.java | 65 Attr newAttr; 71 newAttr = doc.createAttributeNS(namespaceURI, "");
|
H A D | importNode01.java | 76 Attr newAttr; 96 newAttr = aNewDoc.createAttribute("elem:attr1"); 98 aNode = newAttr.appendChild(importedChild); 99 aNode = doc.importNode(newAttr, false);
|
H A D | removeNamedItemNS01.java | 79 Attr newAttr; 87 newAttr = (Attr) attributes.getNamedItem("dmstc:domestic"); 88 assertNull("nodeRemoved", newAttr);
|
H A D | setAttributeNodeNS02.java | 41 * "setAttributeNodeNS(newAttr)" method. 84 Attr newAttr; 100 newAttr = doc.createAttributeNS("www.xyz.com", "emp:local1"); 105 setAttr1 = genElement.setAttributeNodeNS(newAttr);
|
H A D | setAttributeNodeNS04.java | 34 * The "setAttributeNodeNS(newAttr)" adds a new attribute. 79 Attr newAttr; 86 newAttr = doc.createAttributeNS("http://www.nist.gov", "xxx:domestic"); 87 newAddrAttr = ((Element) /*Node */testAddr).setAttributeNodeNS(newAttr);
|
H A D | setAttributeNodeNS05.java | 34 * The "setAttributeNodeNS(newAttr)" method raises an 35 * "WRONG_DOCUMENT_ERR DOMException if the "newAttr" 44 * This test uses the "createAttributeNS(newAttr)" method 76 String qualifiedName = "emp:newAttr"; 79 Attr newAttr; 85 newAttr = doc2.createAttributeNS(namespaceURI, qualifiedName); 92 setAttr1 = ((Element) /*Node */testAddr).setAttributeNodeNS(newAttr);
|
H A D | attrgetownerelement02.java | 76 Attr newAttr; 80 newAttr = element.setAttributeNodeNS(attr);
|
H A D | createAttributeNS03.java | 72 Attr newAttr; 109 newAttr = doc.createAttributeNS(namespaceURI, qualifiedName);
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
H A D | elementsetattributenodenomodificationallowederr.java | 31 * The "setAttributeNode(newAttr)" method for an attribute causes the 37 * from the entity reference by executing the "setAttributeNode(newAttr)" method. 73 Attr newAttr; 89 newAttr = doc.createAttribute("newAttr"); 94 badAttr = entElement.setAttributeNode(newAttr);
|
H A D | elementsetattributenodenomodificationallowederrEE.java | 31 * The "setAttributeNode(newAttr)" method for an attribute causes the 37 * from the entity reference by executing the "setAttributeNode(newAttr)" method. 79 Attr newAttr; 90 newAttr = doc.createAttribute("newAttr"); 95 badAttr = entElement.setAttributeNode(newAttr);
|
/libcore/luni/src/main/java/org/w3c/dom/ |
H A D | Element.java | 118 * @param newAttr The <code>Attr</code> node to add to the attribute list. 119 * @return If the <code>newAttr</code> attribute replaces an existing 123 * WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a 126 * <br>INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an 131 public Attr setAttributeNode(Attr newAttr) argument 287 * @param newAttr The <code>Attr</code> node to add to the attribute list. 288 * @return If the <code>newAttr</code> attribute replaces an existing 293 * WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a 296 * <br>INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an 305 public Attr setAttributeNodeNS(Attr newAttr) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | ElementImpl.java | 269 public Attr setAttributeNode(Attr newAttr) throws DOMException { argument 270 AttrImpl newAttrImpl = (AttrImpl) newAttr; 282 int i = indexOfAttribute(newAttr.getName()); 294 public Attr setAttributeNodeNS(Attr newAttr) throws DOMException { argument 295 AttrImpl newAttrImpl = (AttrImpl) newAttr; 307 int i = indexOfAttributeNS(newAttr.getNamespaceURI(), newAttr.getLocalName());
|