/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | ElementImpl.java | 49 String localName; field in ElementImpl 74 private int indexOfAttributeNS(String namespaceURI, String localName) { in indexOfAttributeNS() argument 78 && Objects.equals(localName, attr.getLocalName())) { in indexOfAttributeNS() 96 public String getAttributeNS(String namespaceURI, String localName) { in getAttributeNS() argument 97 Attr attr = getAttributeNodeNS(namespaceURI, localName); in getAttributeNS() 116 public AttrImpl getAttributeNodeNS(String namespaceURI, String localName) { in getAttributeNodeNS() argument 117 int i = indexOfAttributeNS(namespaceURI, localName); in getAttributeNodeNS() 171 public NodeList getElementsByTagNameNS(String namespaceURI, String localName) { in getElementsByTagNameNS() argument 173 getElementsByTagNameNS(result, namespaceURI, localName); in getElementsByTagNameNS() 179 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/main/java/org/apache/harmony/xml/ |
D | ExpatAttributes.java | 83 public int getIndex(String uri, String localName) { in getIndex() argument 87 if (localName == null) { in getIndex() 94 return getIndex(pointer, uri, localName); in getIndex() 108 public String getType(String uri, String localName) { in getType() argument 112 if (localName == null) { in getType() 115 return getIndex(uri, localName) == -1 ? null : CDATA; in getType() 122 public String getValue(String uri, String localName) { in getValue() argument 126 if (localName == null) { in getValue() 133 return getValue(pointer, uri, localName); in getValue() 151 private static native int getIndex(long attributePointer, String uri, String localName); in getIndex() argument [all …]
|
/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 | XmlToSax2DriverTest.java | 333 public void startElement(String uri, String localName, String qName, in testParse_InputSource() 335 super.startElement(uri, localName, qName, attributes); in testParse_InputSource() 337 tagsEncountered.add(localName); in testParse_InputSource() 338 if ("note".equals(localName)) { in testParse_InputSource() 354 public void endElement(String uri, String localName, String qName) throws SAXException { in testParse_InputSource() 355 super.endElement(uri, localName, qName); in testParse_InputSource() 411 public void startElement(String uri, String localName, String qName, in testParseSubtree() 413 super.startElement(uri, localName, qName, attributes); in testParseSubtree() 415 tagsEncountered.add(localName); in testParseSubtree() 416 if ("note".equals(localName)) { in testParseSubtree() [all …]
|
D | ExpatSaxParserTest.java | 65 public void startElement(String uri, String localName, in testExceptions() 79 public void endElement(String uri, String localName, in testExceptions() 141 public void startElement(String uri, String localName, String qName, in startElement() argument 145 this.startElementName = localName; in startElement() 157 public void endElement(String uri, String localName, String qName) in endElement() argument 160 this.endElementName = localName; in endElement() 229 public void startElement(String uri, String localName, String qName, in startElement() argument 232 if (localName == "one") { in startElement() 259 if (localName == "two") { in startElement() 297 public void endElement(String uri, String localName, String qName) in endElement() argument [all …]
|
D | SimpleParserTest.java | 106 public void startElement(String uri, String localName, String qName, Attributes atts) { 112 elements1.append(localName); 115 namespaces1.put(localName, uri); 138 public void endElement(String uri, String localName, String qName) {} 233 public void startElement (String uri, String localName, in testGetValue() argument 235 if(firstAddressElem && localName.equals("address")) { in testGetValue()
|
/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/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/helpers/ |
D | AttributesImpl.java | 201 public int getIndex (String uri, String localName) in getIndex() argument 205 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getIndex() 242 public String getType (String uri, String localName) in getType() argument 246 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getType() 284 public String getValue (String uri, String localName) in getValue() argument 288 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getValue() 381 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument 386 data[length*5+1] = localName; in addAttribute() 415 public void setAttribute (int index, String uri, String localName, in setAttribute() argument 420 data[index*5+1] = localName; in setAttribute() [all …]
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | Attributes2Impl.java | 100 public boolean isDeclared (String uri, String localName) in isDeclared() argument 102 int index = getIndex (uri, localName); in isDeclared() 106 "No such attribute: local=" + localName in isDeclared() 154 public boolean isSpecified (String uri, String localName) in isSpecified() argument 156 int index = getIndex (uri, localName); in isSpecified() 160 "No such attribute: local=" + localName in isSpecified() 245 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument 248 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/ |
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 | localName01.java | 78 String localName; in runTest() local 84 localName = addrAttr.getLocalName(); in runTest() 85 assertEquals("localName", "domestic", 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 | 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()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/ |
D | MockHandler.java | 57 public void endElement(String uri, String localName, String name) throws SAXException { in endElement() argument 58 logger.add("endElement", uri, localName, name); in endElement() 101 public void startElement(String uri, String localName, String name, Attributes atts) in startElement() argument 103 logger.add("startElement", uri, localName, name, atts); in startElement()
|