/libcore/luni/src/test/java/libcore/xml/ |
D | SaxTest.java | 41 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces() 44 assertEquals("foo", qName); in testNoPrefixesNoNamespaces() 54 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces() 57 assertEquals("a:foo", qName); in testNoPrefixesNoNamespaces() 69 String qName, Attributes attributes) { in testNoPrefixesYesNamespaces() 72 assertEquals("foo", qName); in testNoPrefixesYesNamespaces() 82 String qName, Attributes attributes) { in testNoPrefixesYesNamespaces() 85 assertEquals("a:foo", qName); in testNoPrefixesYesNamespaces() 101 String qName, Attributes attributes) { in testYesPrefixesYesNamespaces() 104 assertEquals("foo", qName); in testYesPrefixesYesNamespaces() [all …]
|
D | ExpatSaxParserTest.java | 65 String qName, Attributes attributes) in testExceptions() 79 String qName) in testExceptions() 140 public void startElement(String uri, String localName, String qName, in startElement() argument 156 public void endElement(String uri, String localName, String qName) in endElement() argument 228 public void startElement(String uri, String localName, String qName, in startElement() argument 244 assertEquals("one", qName); in startElement() 269 Assert.assertEquals("n1:two", qName); in startElement() 296 public void endElement(String uri, String localName, String qName) in endElement() argument 309 assertEquals("one", qName); in endElement() 323 assertEquals("n1:two", qName); in endElement() [all …]
|
D | SimpleParserTest.java | 106 public void startElement(String uri, String localName, String qName, Attributes atts) { 126 elements2.append(qName); 129 namespaces2.put(qName, uri); 138 public void endElement(String uri, String localName, String qName) {} 234 String qName, Attributes attributes) { in testGetValue() argument
|
D | NamespacedAttributesLookupTest.java | 107 String uri, String localName, String qName, Attributes attributes) { in getStartElements() 117 serialized.append(qName); in getStartElements()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatAttributes.java | 91 public int getIndex(String qName) { in getIndex() argument 92 if (qName == null) { in getIndex() 99 return getIndexForQName(pointer, qName); in getIndex() 112 public String getType(String qName) { in getType() argument 113 return getIndex(qName) == -1 ? null : CDATA; in getType() 130 public String getValue(String qName) { in getValue() argument 131 if (qName == null) { in getValue() 138 return getValueForQName(pointer, qName); in getValue() 146 private static native int getIndexForQName(long attributePointer, String qName); in getIndexForQName() argument 148 private static native String getValueForQName(long attributePointer, String qName); in getValueForQName() argument
|
D | ExpatParser.java | 131 /*package*/ void startElement(String uri, String localName, String qName, in startElement() argument 144 uri, localName, qName, this.attributes); in startElement() 152 /*package*/ void endElement(String uri, String localName, String qName) in endElement() argument 156 contentHandler.endElement(uri, localName, qName); in endElement() 774 void startElement(String uri, String localName, String qName, in startElement() argument 781 super.startElement(uri, localName, qName, attributePointer, in startElement() 787 void endElement(String uri, String localName, String qName) in endElement() argument 790 super.endElement(uri, localName, qName); in endElement()
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | Attributes2Impl.java | 111 public boolean isDeclared (String qName) in isDeclared() argument 113 int index = getIndex (qName); in isDeclared() 117 "No such attribute: " + qName); in isDeclared() 169 public boolean isSpecified (String qName) in isSpecified() argument 171 int index = getIndex (qName); in isSpecified() 175 "No such attribute: " + qName); 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 | 67 public boolean isDeclared (String qName); in isDeclared() argument 131 public boolean isSpecified (String qName); in isSpecified() argument
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | AttributesImpl.java | 218 public int getIndex (String qName) in getIndex() argument 222 if (data[i+2].equals(qName)) { in getIndex() 260 public String getType (String qName) in getType() argument 264 if (data[i+2].equals(qName)) { in getType() 302 public String getValue (String qName) in getValue() argument 306 if (data[i+2].equals(qName)) { in getValue() 379 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument 385 data[length*5+2] = qName; in addAttribute() 414 String qName, String type, String value) in setAttribute() argument 419 data[index*5+2] = qName; in setAttribute() [all …]
|
D | XMLReaderAdapter.java | 328 String qName, Attributes atts) in startElement() argument 333 documentHandler.startElement(qName, qAtts); in startElement() 349 String qName) in endElement() argument 353 documentHandler.endElement(qName); in endElement() 514 public String getType (String qName) in getType() argument 516 return attributes.getType(qName); in getType() 526 public String getValue (String qName) in getValue() argument 528 return attributes.getValue(qName); in getValue()
|
D | ParserAdapter.java | 476 public void startElement (String qName, AttributeList qAtts) throws SAXException { in startElement() argument 488 contentHandler.startElement("", "", qName.intern(), in startElement() 591 String name[] = processName(qName, false, false); in startElement() 606 public void endElement (String qName) in endElement() argument 613 contentHandler.endElement("", "", qName.intern()); in endElement() 619 String names[] = processName(qName, false, false); in endElement() 737 private String [] processName (String qName, boolean isAttribute, in processName() argument 741 String parts[] = nsSupport.processName(qName, nameParts, in processName() 745 throw makeException("Undeclared prefix: " + qName); in processName() 746 reportError("Undeclared prefix: " + qName); in processName() [all …]
|
D | NamespaceSupport.java | 343 public String [] processName (String qName, String parts[], in processName() argument 346 String myParts[] = currentContext.processName(qName, isAttribute); in processName() 636 String [] processName (String qName, boolean isAttribute) in processName() argument 654 name = (String[])table.get(qName); in processName() 664 name[2] = qName.intern(); in processName() 665 int index = qName.indexOf(':'); in processName() 671 if (qName == "xmlns" && namespaceDeclUris) in processName() 685 String prefix = qName.substring(0, index); in processName() 686 String local = qName.substring(index+1); in processName()
|
D | DefaultHandler.java | 271 String qName, Attributes attributes) in startElement() argument 298 public void endElement (String uri, String localName, String qName) in endElement() argument
|
D | XMLFilterImpl.java | 521 public void startElement (String uri, String localName, String qName, in startElement() argument 526 contentHandler.startElement(uri, localName, qName, atts); in startElement() 541 public void endElement (String uri, String localName, String qName) in endElement() argument 545 contentHandler.endElement(uri, localName, qName); in endElement()
|
/libcore/luni/src/main/java/org/xml/sax/ |
D | Attributes.java | 194 public int getIndex (String qName); in getIndex() argument 224 public abstract String getType (String qName); in getType() argument 253 public abstract String getValue (String qName); in getValue() argument
|
D | ContentHandler.java | 258 String qName, Attributes atts) in startElement() argument 284 String qName) in endElement() argument
|
/libcore/luni/src/main/native/ |
D | org_apache_harmony_xml_ExpatParser.cpp | 514 jstring qName() { in qName() function in ExpatElementName 520 ::LocalArray<1024> qName(strlen(mPrefix) + 1 + strlen(mLocalName) + 1); in qName() 521 snprintf(&qName[0], qName.size(), "%s:%s", mPrefix, mLocalName); in qName() 522 return internString(mEnv, mParsingContext, &qName[0]); in qName() 535 bool matchesQName(const char* qName) { in matchesQName() argument 536 const char* lastColon = strrchr(qName, ':'); in matchesQName() 545 return strcmp(qName, mLocalName) == 0; in matchesQName() 549 size_t prefixLength = lastColon - qName; in matchesQName() 551 && strncmp(qName, mPrefix, prefixLength) == 0 in matchesQName() 629 jstring qName = e.qName(); in startElement() local [all …]
|
/libcore/luni/src/main/java/javax/xml/namespace/ |
D | QName.java | 319 QName qName = (QName) objectToTest; in equals() local 320 return localPart.equals(qName.localPart) && namespaceURI.equals(qName.namespaceURI); in equals()
|
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/ |
D | Driver.java | 118 public int getIndex(String qName) { in getIndex() argument 121 if(pp.getAttributeName(i).equals(qName)) in getIndex() 142 public String getType(String qName) { in getType() argument 145 if(pp.getAttributeName(i).equals(qName)) in getType() 156 public String getValue(String qName) { in getValue() argument 157 return pp.getAttributeValue(null, qName); in getValue() 465 …protected void startElement(String namespace, String localName, String qName) throws SAXException { in startElement() argument 466 contentHandler.startElement(namespace, localName, qName, this); in startElement()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | XercesHTML2DocumentBuilderFactory.java | 141 String qName, in startElement() argument 144 htmlBuilder.startElement(qName, this); in startElement() 147 public void endElement(String uri, String localName, String qName) throws in endElement() argument 149 htmlBuilder.endElement(qName); in endElement()
|
D | XercesHTMLDocumentBuilderFactory.java | 141 String qName, in startElement() argument 144 htmlBuilder.startElement(qName, this); in startElement() 147 public void endElement(String uri, String localName, String qName) throws in endElement() argument 149 htmlBuilder.endElement(qName); in endElement()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | SAXParserTestSupport.java | 230 public void endElement(String uri, String localName, String qName) { in endElement() argument 236 sb.append(qName); in endElement() 308 public void startElement(String uri, String localName, String qName, in startElement() argument 314 data_startElement.append(qName); in startElement() 409 public void endElement(String uri, String localName, String qName) { in endElement() argument 415 sb.append(qName); in endElement() 465 public void startElement(String uri, String localName, String qName, in startElement() argument 471 data_startElement.append(qName); in startElement()
|
D | SAXParserFactoryTest.java | 378 public void startElement(String uri, String localName, String qName, in startElement() argument 381 el.add(qName); in startElement() 383 ns.put(qName, uri); in startElement()
|
/libcore/benchmarks/src/benchmarks/ |
D | XmlParseBenchmark.java | 99 String qName, Attributes attributes) { in startElement() argument
|