Home
last modified time | relevance | path

Searched refs:atts (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributeListImpl.java94 public AttributeListImpl (AttributeList atts) in AttributeListImpl() argument
96 setAttributeList(atts); in AttributeListImpl()
114 public void setAttributeList (AttributeList atts) in setAttributeList() argument
116 int count = atts.getLength(); in setAttributeList()
121 addAttribute(atts.getName(i), atts.getType(i), atts.getValue(i)); in setAttributeList()
DAttributesImpl.java75 public AttributesImpl (Attributes atts) in AttributesImpl() argument
77 setAttributes(atts); in AttributesImpl()
347 public void setAttributes (Attributes atts) in setAttributes() argument
350 length = atts.getLength(); in setAttributes()
354 data[i*5] = atts.getURI(i); in setAttributes()
355 data[i*5+1] = atts.getLocalName(i); in setAttributes()
356 data[i*5+2] = atts.getQName(i); in setAttributes()
357 data[i*5+3] = atts.getType(i); in setAttributes()
358 data[i*5+4] = atts.getValue(i); in setAttributes()
DParserAdapter.java143 atts = new AttributesImpl(); in setup()
535 atts.clear(); in startElement()
562 atts.addAttribute (nsSupport.XMLNS, prefix, in startElement()
565 atts.addAttribute ("", "", in startElement()
575 atts.addAttribute(attName[0], attName[1], attName[2], in startElement()
582 atts.addAttribute("", attQName, attQName, type, value); in startElement()
596 contentHandler.startElement(name[0], name[1], name[2], atts); in startElement()
836 private AttributesImpl atts = null; field in ParserAdapter
1002 int max = atts.getLength(); in getIndex()
DXMLReaderAdapter.java333 String qName, Attributes atts) in startElement() argument
337 qAtts.setAttributes(atts); in startElement()
DXMLFilterImpl.java525 Attributes atts) in startElement() argument
529 contentHandler.startElement(uri, localName, qName, atts); in startElement()
/libcore/luni/src/main/java/org/xml/sax/ext/
DAttributes2Impl.java72 public Attributes2Impl (Attributes atts) in Attributes2Impl() argument
74 super (atts); in Attributes2Impl()
201 public void setAttributes (Attributes atts) in setAttributes() argument
203 int length = atts.getLength (); in setAttributes()
205 super.setAttributes (atts); in setAttributes()
209 if (atts instanceof Attributes2) { in setAttributes()
210 Attributes2 a2 = (Attributes2) atts; in setAttributes()
217 declared [i] = !"CDATA".equals (atts.getType (i)); in setAttributes()
/libcore/luni/src/test/java/libcore/xml/
DExpatSaxParserTest.java230 Attributes atts) throws SAXException { in startElement() argument
248 assertEquals(1, atts.getLength()); in startElement()
250 assertSame("", atts.getURI(0)); in startElement()
251 assertSame("a", atts.getLocalName(0)); in startElement()
252 assertEquals("b", atts.getValue(0)); in startElement()
253 assertEquals(0, atts.getIndex("", "a")); in startElement()
254 assertEquals("b", atts.getValue("", "a")); in startElement()
273 assertEquals(2, atts.getLength()); in startElement()
275 assertSame("", atts.getURI(0)); in startElement()
276 assertSame("c", atts.getLocalName(0)); in startElement()
[all …]
DSimpleParserTest.java106 public void startElement(String uri, String localName, String qName, Attributes atts) {
118 for (int i = 0; i < atts.getLength(); i++) {
119 attributes1.put(atts.getLocalName(i), atts.getValue(i));
132 for (int i = 0; i < atts.getLength(); i++) {
133 attributes2.put(atts.getQName(i), atts.getValue(i));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java150 Attributes atts = new Attributes(); in test_putAllLjava_util_Map() local
151 assertNull("Assert 0: ", atts.put(Attributes.Name.CLASS_PATH, "tools.jar")); in test_putAllLjava_util_Map()
152 assertNull("Assert 1: ", atts.put(Attributes.Name.MANIFEST_VERSION, "1")); in test_putAllLjava_util_Map()
154 atts2.putAll(atts); in test_putAllLjava_util_Map()
158 atts.putAll(Collections.EMPTY_MAP); in test_putAllLjava_util_Map()
227 Attributes atts = new Attributes(); in test_putLjava_lang_ObjectLjava_lang_Object() local
228 assertNull("Assert 0: ", atts.put(Attributes.Name.CLASS_PATH, "tools.jar")); in test_putLjava_lang_ObjectLjava_lang_Object()
229 assertEquals("Assert 1: ", "tools.jar", atts.getValue(Attributes.Name.CLASS_PATH)); in test_putLjava_lang_ObjectLjava_lang_Object()
232 atts.put("not a name", "value"); in test_putLjava_lang_ObjectLjava_lang_Object()
238 atts.put(Attributes.Name.CLASS_PATH, Boolean.TRUE); in test_putLjava_lang_ObjectLjava_lang_Object()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DMockHandler.java97 public void startElement(String name, AttributeList atts) throws SAXException { in startElement() argument
98 logger.add("startElement", name, atts); in startElement()
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()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DParserAdapterTest.java261 AttributeListImpl atts = new AttributeListImpl(); in testStartElement() local
262 atts.addAttribute("john:doe", "int", "42"); in testStartElement()
266 adapter.startElement("foo:bar", atts); in testStartElement()
279 AttributeListImpl atts = new AttributeListImpl(); in testEndElement() local
280 atts.addAttribute("john:doe", "int", "42"); in testEndElement()
284 adapter.startElement("foo:bar", atts); in testEndElement()
DXMLReaderAdapterTest.java234 AttributesImpl atts = new AttributesImpl(); in testStartElement() local
235 atts.addAttribute("http://some.other.uri", "gabba", "gabba:hey", in testStartElement()
239 adapter.startElement("http://some.uri", "bar", "foo:bar", atts); in testStartElement()
DXMLFilterImplTest.java363 Attributes atts = new AttributesImpl(); in testStartElement() local
366 parent.startElement("http://some.uri", "bar", "foo:bar", atts); in testStartElement()
373 assertEquals(new Object[] { "http://some.uri", "bar", "foo:bar", atts }, in testStartElement()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserFactoryTest.java378 Attributes atts) { in startElement() argument
383 for (int i = 0; i < atts.getLength(); i++) { in startElement()
384 attr.put(atts.getQName(i), atts.getValue(i)); in startElement()
/libcore/luni/src/main/java/org/xml/sax/
DDocumentHandler.java131 public abstract void startElement (String name, AttributeList atts) in startElement() argument
DContentHandler.java258 String qName, Attributes atts) in startElement() argument