Home
last modified time | relevance | path

Searched refs:qName (Results 1 – 24 of 24) sorted by relevance

/libcore/luni/src/test/java/libcore/xml/
DSaxTest.java41 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 …]
DExpatSaxParserTest.java66 String qName, Attributes attributes) in testExceptions()
80 String qName) in testExceptions()
141 public void startElement(String uri, String localName, String qName, in startElement() argument
157 public void endElement(String uri, String localName, String qName) in endElement() argument
229 public void startElement(String uri, String localName, String qName, in startElement() argument
245 assertEquals("one", qName); in startElement()
270 Assert.assertEquals("n1:two", qName); in startElement()
297 public void endElement(String uri, String localName, String qName) in endElement() argument
310 assertEquals("one", qName); in endElement()
324 assertEquals("n1:two", qName); in endElement()
[all …]
DSimpleParserTest.java106 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
DNamespacedAttributesLookupTest.java107 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/
DExpatAttributes.java97 public int getIndex(String qName) { in getIndex() argument
98 if (qName == null) { in getIndex()
105 return getIndexForQName(pointer, qName); in getIndex()
118 public String getType(String qName) { in getType() argument
119 return getIndex(qName) == -1 ? null : CDATA; in getType()
136 public String getValue(String qName) { in getValue() argument
137 if (qName == null) { in getValue()
144 return getValueForQName(pointer, qName); in getValue()
152 private static native int getIndexForQName(long attributePointer, String qName); in getIndexForQName() argument
154 private static native String getValueForQName(long attributePointer, String qName); in getValueForQName() argument
DExpatParser.java142 /*package*/ void startElement(String uri, String localName, String qName, in startElement() argument
155 uri, localName, qName, this.attributes); in startElement()
163 /*package*/ void endElement(String uri, String localName, String qName) in endElement() argument
167 contentHandler.endElement(uri, localName, qName); in endElement()
793 void startElement(String uri, String localName, String qName, in startElement() argument
800 super.startElement(uri, localName, qName, attributePointer, in startElement()
806 void endElement(String uri, String localName, String qName) in endElement() argument
809 super.endElement(uri, localName, qName); in endElement()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributesImpl.java220 public int getIndex (String qName) in getIndex() argument
224 if (data[i+2].equals(qName)) { in getIndex()
262 public String getType (String qName) in getType() argument
266 if (data[i+2].equals(qName)) { in getType()
304 public String getValue (String qName) in getValue() argument
308 if (data[i+2].equals(qName)) { in getValue()
381 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument
387 data[length*5+2] = qName; in addAttribute()
416 String qName, String type, String value) in setAttribute() argument
421 data[index*5+2] = qName; in setAttribute()
[all …]
DParserAdapter.java480 public void startElement (String qName, AttributeList qAtts) throws SAXException { in startElement() argument
492 contentHandler.startElement("", "", qName.intern(), in startElement()
595 String name[] = processName(qName, false, false); in startElement()
610 public void endElement (String qName) in endElement() argument
617 contentHandler.endElement("", "", qName.intern()); in endElement()
623 String names[] = processName(qName, false, false); in endElement()
743 private String [] processName (String qName, boolean isAttribute, in processName() argument
747 String parts[] = nsSupport.processName(qName, nameParts, in processName()
751 throw makeException("Undeclared prefix: " + qName); in processName()
752 reportError("Undeclared prefix: " + qName); in processName()
[all …]
DXMLReaderAdapter.java333 String qName, Attributes atts) in startElement() argument
338 documentHandler.startElement(qName, qAtts); in startElement()
354 String qName) in endElement() argument
358 documentHandler.endElement(qName); in endElement()
522 public String getType (String qName) in getType() argument
524 return attributes.getType(qName); in getType()
534 public String getValue (String qName) in getValue() argument
536 return attributes.getValue(qName); in getValue()
DNamespaceSupport.java345 public String [] processName (String qName, String parts[], in processName() argument
348 String myParts[] = currentContext.processName(qName, isAttribute); in processName()
643 String [] processName (String qName, boolean isAttribute) in processName() argument
661 name = (String[])table.get(qName); in processName()
671 name[2] = qName.intern(); in processName()
672 int index = qName.indexOf(':'); in processName()
678 if (qName == "xmlns" && namespaceDeclUris) in processName()
692 String prefix = qName.substring(0, index); in processName()
693 String local = qName.substring(index+1); in processName()
DXMLFilterImpl.java524 public void startElement (String uri, String localName, String qName, in startElement() argument
529 contentHandler.startElement(uri, localName, qName, atts); in startElement()
544 public void endElement (String uri, String localName, String qName) in endElement() argument
548 contentHandler.endElement(uri, localName, qName); in endElement()
DDefaultHandler.java271 String qName, Attributes attributes) in startElement() argument
298 public void endElement (String uri, String localName, String qName) in endElement() argument
/libcore/luni/src/main/java/org/xml/sax/ext/
DAttributes2Impl.java116 public boolean isDeclared (String qName) in isDeclared() argument
118 int index = getIndex (qName); in isDeclared()
122 "No such attribute: " + qName); in isDeclared()
174 public boolean isSpecified (String qName) in isSpecified() argument
176 int index = getIndex (qName); in isSpecified()
180 "No such attribute: " + qName); 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()
DAttributes2.java67 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/
DAttributes.java194 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
DContentHandler.java258 String qName, Attributes atts) in startElement() argument
284 String qName) in endElement() argument
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
DDriver.java118 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/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp530 jstring qName() { in qName() function in ExpatElementName
536 auto qName = android::base::StringPrintf("%s:%s", mPrefix, mLocalName); in qName() local
537 return internString(mEnv, mParsingContext, qName.c_str()); in qName()
550 bool matchesQName(const char* qName) { in matchesQName() argument
551 const char* lastColon = strrchr(qName, ':'); in matchesQName()
560 return strcmp(qName, mLocalName) == 0; in matchesQName()
564 size_t prefixLength = lastColon - qName; in matchesQName()
566 && strncmp(qName, mPrefix, prefixLength) == 0 in matchesQName()
644 jstring qName = e.qName(); in startElement() local
646 parsingContext->stringStack.push(env, qName); in startElement()
[all …]
/libcore/luni/src/main/java/javax/xml/namespace/
DQName.java319 QName qName = (QName) objectToTest; in equals() local
320 return localPart.equals(qName.localPart) && namespaceURI.equals(qName.namespaceURI); in equals()
/libcore/dom/src/test/java/org/w3c/domts/
DXercesHTMLDocumentBuilderFactory.java141 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()
DXercesHTML2DocumentBuilderFactory.java141 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/
DSAXParserTestSupport.java230 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()
DSAXParserFactoryTest.java377 public void startElement(String uri, String localName, String qName, in startElement() argument
380 el.add(qName); in startElement()
382 ns.put(qName, uri); in startElement()
/libcore/benchmarks/src/benchmarks/
DXmlParseBenchmark.java100 String qName, Attributes attributes) { in startElement() argument