Home
last modified time | relevance | path

Searched refs:prefixes (Results 1 – 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DNamespaceSupportTest.java56 Enumeration<String> prefixes = ns.getDeclaredPrefixes(); in testConstructor() local
58 while (prefixes.hasMoreElements()) { in testConstructor()
59 prefix = prefixes.nextElement(); in testConstructor()
161 ArrayList<String> prefixes; in testGetPrefixesLjava_lang_String() local
163 prefixes = Collections.list(ns.getPrefixes(marketUri)); in testGetPrefixesLjava_lang_String()
165 expected.containsAll(prefixes) && prefixes.containsAll(expected)); in testGetPrefixesLjava_lang_String()
167 prefixes = Collections.list(ns.getPrefixes(defaultUri)); in testGetPrefixesLjava_lang_String()
169 prefixes.size() == 0); in testGetPrefixesLjava_lang_String()
171 prefixes = Collections.list(ns.getPrefixes(NamespaceSupport.XMLNS)); in testGetPrefixesLjava_lang_String()
173 prefixes.contains("xml") && prefixes.size() == 1); in testGetPrefixesLjava_lang_String()
[all …]
/libcore/luni/src/main/java/org/xml/sax/helpers/
DParserAdapter.java180 if (!namespaces && !prefixes) { in setFeature()
181 prefixes = true; in setFeature()
185 prefixes = value; in setFeature()
186 if (!prefixes && !namespaces) { in setFeature()
218 return prefixes; in getFeature()
553 if (prefixes) { in startElement()
622 Enumeration prefixes = nsSupport.getDeclaredPrefixes(); in endElement() local
623 while (prefixes.hasMoreElements()) { in endElement()
624 String prefix = (String)prefixes.nextElement(); in endElement()
703 if (!prefixes && !namespaces) in setupParser()
[all …]
DNamespaceSupport.java445 ArrayList<String> prefixes = new ArrayList<String>(); in getPrefixes() local
450 prefixes.add(prefix); in getPrefixes()
453 return Collections.enumeration(prefixes); in getPrefixes()
/libcore/luni/src/test/java/libcore/xml/
DSaxTest.java203 private void parse(boolean prefixes, boolean namespaces, String xml, in parse() argument
207 reader.setFeature("http://xml.org/sax/features/namespace-prefixes", prefixes); in parse()