/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatAttributes.java | 77 public int getIndex(String uri, String localName) { in getIndex() argument 81 if (localName == null) { in getIndex() 88 return getIndex(pointer, uri, localName); in getIndex() 102 public String getType(String uri, String localName) { in getType() argument 106 if (localName == null) { in getType() 109 return getIndex(uri, localName) == -1 ? null : CDATA; in getType() 116 public String getValue(String uri, String localName) { in getValue() argument 120 if (localName == null) { in getValue() 127 return getValue(pointer, uri, localName); in getValue() 145 private static native int getIndex(long attributePointer, String uri, String localName); in getIndex() argument [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | ElementImpl.java | 45 String localName; field in ElementImpl 70 private int indexOfAttributeNS(String namespaceURI, String localName) { in indexOfAttributeNS() argument 74 && Objects.equal(localName, attr.getLocalName())) { in indexOfAttributeNS() 92 public String getAttributeNS(String namespaceURI, String localName) { in getAttributeNS() argument 93 Attr attr = getAttributeNodeNS(namespaceURI, localName); in getAttributeNS() 112 public AttrImpl getAttributeNodeNS(String namespaceURI, String localName) { in getAttributeNodeNS() argument 113 int i = indexOfAttributeNS(namespaceURI, localName); in getAttributeNodeNS() 167 public NodeList getElementsByTagNameNS(String namespaceURI, String localName) { in getElementsByTagNameNS() argument 169 getElementsByTagNameNS(result, namespaceURI, localName); in getElementsByTagNameNS() 175 return namespaceAware ? localName : null; in getLocalName() [all …]
|
D | AttrImpl.java | 44 String localName; field in AttrImpl 60 return namespaceAware ? localName : null; in getLocalName() 65 ? prefix + ":" + localName in getName() 66 : localName; in getName()
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | LocalName.java | 60 String localName; in testGetLocalName1() local 66 localName = addrAttr.getLocalName(); in testGetLocalName1() 67 assertEquals("localName", "domestic", localName); in testGetLocalName1() 72 String localName; in testGetLocalName2() local 75 localName = createdNode.getLocalName(); in testGetLocalName2() 76 assertNull("localNameNull", localName); in testGetLocalName2() 83 String localName; in testGetLocalName3() local 88 localName = textNode.getLocalName(); in testGetLocalName3() 89 assertNull("textNodeLocalName", localName); in testGetLocalName3()
|
D | HasAttributeNS.java | 74 String localName = "nomatch"; in testHasAttributeNS1() local 83 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS1() 87 String localName = "domestic"; in testHasAttributeNS2() local 96 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS2() 100 String localName = "blank"; in testHasAttributeNS3() local 110 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS3() 130 String localName = "domestic"; in testHasAttributeNS5() local 139 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS5()
|
D | GetAttributeNS.java | 92 String localName = "district"; in testGetAttributeNS2() local 108 attrValue = testAddr.getAttributeNS(namespaceURI, localName); in testGetAttributeNS2() 113 String localName = "domestic"; in testGetAttributeNS3() local 122 testAddr.removeAttributeNS(namespaceURI, localName); in testGetAttributeNS3() 123 attrValue = testAddr.getAttributeNS(namespaceURI, localName); in testGetAttributeNS3() 128 String localName = "blank"; in testGetAttributeNS4() local 142 attrValue = testAddr.getAttributeNS(namespaceURI, localName); in testGetAttributeNS4()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | SaxTest.java | 40 @Override public void startElement(String uri, String localName, in testNoPrefixesNoNamespaces() 43 assertEquals("", localName); in testNoPrefixesNoNamespaces() 53 @Override public void startElement(String uri, String localName, in testNoPrefixesNoNamespaces() 56 assertEquals("", localName); in testNoPrefixesNoNamespaces() 68 @Override public void startElement(String uri, String localName, in testNoPrefixesYesNamespaces() 71 assertEquals("foo", localName); in testNoPrefixesYesNamespaces() 81 @Override public void startElement(String uri, String localName, in testNoPrefixesYesNamespaces() 84 assertEquals("foo", localName); in testNoPrefixesYesNamespaces() 100 @Override public void startElement(String uri, String localName, in testYesPrefixesYesNamespaces() 103 assertEquals("foo", localName); in testYesPrefixesYesNamespaces() [all …]
|
D | ExpatSaxParserTest.java | 64 public void startElement(String uri, String localName, in testExceptions() 78 public void endElement(String uri, String localName, in testExceptions() 140 public void startElement(String uri, String localName, String qName, in startElement() argument 144 this.startElementName = localName; in startElement() 156 public void endElement(String uri, String localName, String qName) in endElement() argument 159 this.endElementName = localName; in endElement() 228 public void startElement(String uri, String localName, String qName, in startElement() argument 231 if (localName == "one") { in startElement() 258 if (localName == "two") { in startElement() 296 public void endElement(String uri, String localName, String qName) in endElement() argument [all …]
|
/libcore/luni/src/main/java/org/w3c/dom/ |
D | Element.java | 180 String localName) in getAttributeNS() argument 255 String localName) in removeAttributeNS() argument 276 String localName) in getAttributeNodeNS() argument 325 String localName) in getElementsByTagNameNS() argument 360 String localName) in hasAttributeNS() argument 413 String localName, in setIdAttributeNS() argument
|
D | NamedNodeMap.java | 118 String localName) in getNamedItemNS() argument 180 String localName) in removeNamedItemNS() argument
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | Attributes2Impl.java | 95 public boolean isDeclared (String uri, String localName) in isDeclared() argument 97 int index = getIndex (uri, localName); in isDeclared() 101 "No such attribute: local=" + localName in isDeclared() 149 public boolean isSpecified (String uri, String localName) in isSpecified() argument 151 int index = getIndex (uri, localName); in isSpecified() 155 "No such attribute: local=" + localName in isSpecified() 240 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument 243 super.addAttribute (uri, localName, qName, type, value); in addAttribute()
|
D | Attributes2.java | 88 public boolean isDeclared (String uri, String localName); in isDeclared() argument 119 public boolean isSpecified (String uri, String localName); in isSpecified() argument
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | AttributesImpl.java | 199 public int getIndex (String uri, String localName) in getIndex() argument 203 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getIndex() 240 public String getType (String uri, String localName) in getType() argument 244 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getType() 282 public String getValue (String uri, String localName) in getValue() argument 286 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getValue() 379 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument 384 data[length*5+1] = localName; in addAttribute() 413 public void setAttribute (int index, String uri, String localName, in setAttribute() argument 418 data[index*5+1] = localName; in setAttribute() [all …]
|
/libcore/luni/src/main/java/org/xml/sax/ |
D | Attributes.java | 184 public int getIndex (String uri, String localName); in getIndex() argument 210 public abstract String getType (String uri, String localName); in getType() argument 239 public abstract String getValue (String uri, String localName); in getValue() argument
|
D | ContentHandler.java | 257 public void startElement (String uri, String localName, in startElement() argument 283 public void endElement (String uri, String localName, in endElement() argument
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | localName02.java | 70 String localName; in runTest() local 73 localName = createdNode.getLocalName(); in runTest() 74 assertNull("localNameNull", localName); in runTest()
|
D | localName03.java | 72 String localName; in runTest() local 77 localName = textNode.getLocalName(); in runTest() 78 assertNull("textNodeLocalName", localName); in runTest()
|
D | getAttributeNS03.java | 68 String localName = "domestic"; in runTest() local 77 testAddr.removeAttributeNS(namespaceURI, localName); in runTest() 78 attrValue = testAddr.getAttributeNS(namespaceURI, localName); in runTest()
|
D | documentcreateelementNS01.java | 84 String localName; in runTest() local 91 localName = element.getLocalName(); in runTest() 96 assertEquals("documentcreateelementNS01_localName", "XML", localName); in runTest()
|
D | localName01.java | 78 String localName; in runTest() local 84 localName = addrAttr.getLocalName(); in runTest() 85 assertEquals("localName", "domestic", localName); in runTest()
|
D | setAttributeNS09.java | 70 String localName = "newAttr"; in runTest() local 86 addrAttr = ((Element) /*Node */testAddr).getAttributeNodeNS(namespaceURI, localName); in runTest() 87 resultAttr = ((Element) /*Node */testAddr).getAttributeNS(namespaceURI, localName); in runTest()
|
D | removeAttributeNS02.java | 85 String localName; in runTest() local 96 localName = addrAttr.getLocalName(); in runTest() 100 assertEquals("lname", "local1", localName); in runTest()
|
D | getElementsByTagNameNS01.java | 68 String localName = "*"; in runTest() local 72 newList = doc.getElementsByTagNameNS(namespaceURI, localName); in runTest()
|
D | getElementsByTagNameNS05.java | 70 String localName = "nomatch"; in runTest() local 74 elementList = doc.getElementsByTagNameNS(namespaceURI, localName); in runTest()
|
D | hasAttributeNS02.java | 66 String localName = "domestic"; in runTest() local 75 state = testNode.hasAttributeNS(namespaceURI, localName); in runTest()
|