Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/javax/xml/namespace/
DQNameTest.java24 QName qName = new QName("hello"); in testConstructor() local
25 assertEquals("", qName.getNamespaceURI()); in testConstructor()
26 assertEquals("", qName.getPrefix()); in testConstructor()
27 assertEquals("hello", qName.getLocalPart()); in testConstructor()
31 QName qName = new QName("namespace", "local part", "prefix"); in testEquals() local
32 assertTrue(qName.equals(qName)); in testEquals()
33 assertFalse(qName.equals(null)); in testEquals()
34 assertFalse(qName.equals(new Object())); in testEquals()
37 assertTrue(qName.equals(qNameSame)); in testEquals()
38 assertTrue(qNameSame.equals(qName)); in testEquals()
[all …]
/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 …]
DXmlToSax2DriverTest.java333 public void startElement(String uri, String localName, String qName, in testParse_InputSource()
335 super.startElement(uri, localName, qName, attributes); 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()
432 public void endElement(String uri, String localName, String qName) throws SAXException { in testParseSubtree()
433 super.endElement(uri, localName, qName); in testParseSubtree()
465 public void startElement(String uri, String localName, String qName, in testStartElement()
467 super.startElement(uri, localName, qName, attributes); in testStartElement()
[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.cpp531 jstring qName() { in qName() function in ExpatElementName
537 auto qName = android::base::StringPrintf("%s:%s", mPrefix, mLocalName); in qName() local
538 return internString(mEnv, mParsingContext, qName.c_str()); in qName()
551 bool matchesQName(const char* qName) { in matchesQName() argument
552 const char* lastColon = strrchr(qName, ':'); in matchesQName()
561 return strcmp(qName, mLocalName) == 0; in matchesQName()
565 size_t prefixLength = lastColon - qName; in matchesQName()
567 && strncmp(qName, mPrefix, prefixLength) == 0 in matchesQName()
645 jstring qName = e.qName(); in startElement() local
647 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.java234 public void endElement(String uri, String localName, String qName) { in endElement() argument
240 sb.append(qName); in endElement()
312 public void startElement(String uri, String localName, String qName, in startElement() argument
318 data_startElement.append(qName); in startElement()
413 public void endElement(String uri, String localName, String qName) { in endElement() argument
419 sb.append(qName); in endElement()
469 public void startElement(String uri, String localName, String qName, in startElement() argument
475 data_startElement.append(qName); in startElement()
DSAXParserFactoryTest.java405 public void startElement(String uri, String localName, String qName, in startElement() argument
408 el.add(qName); in startElement()
410 ns.put(qName, uri); in startElement()

12