Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 183) sorted by relevance

12345678

/libcore/luni/src/test/java/libcore/xml/
DSaxTest.java41 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces()
45 assertEquals(1, attributes.getLength()); in testNoPrefixesNoNamespaces()
46 assertEquals("", attributes.getURI(0)); in testNoPrefixesNoNamespaces()
47 assertOneOf("bar", "", attributes.getLocalName(0)); in testNoPrefixesNoNamespaces()
48 assertEquals("bar", attributes.getQName(0)); in testNoPrefixesNoNamespaces()
54 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces()
58 assertEquals(1, attributes.getLength()); in testNoPrefixesNoNamespaces()
59 assertEquals("", attributes.getURI(0)); in testNoPrefixesNoNamespaces()
60 assertOneOf("a:bar", "", attributes.getLocalName(0)); in testNoPrefixesNoNamespaces()
61 assertEquals("a:bar", attributes.getQName(0)); in testNoPrefixesNoNamespaces()
[all …]
DNamespacedAttributesLookupTest.java107 String uri, String localName, String qName, Attributes attributes) { in getStartElements()
119 for (int i = 0; i < attributes.getLength(); i++) { in getStartElements()
122 serialized.append(attributes.getURI(i)).append(","); in getStartElements()
123 serialized.append(attributes.getLocalName(i)); in getStartElements()
125 serialized.append(attributes.getQName(i)); in getStartElements()
129 .append(attributes.getValue("http://bar", "c")).append(",") in getStartElements()
131 .append(attributes.getValue("bar:c")) in getStartElements()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DNamedNodeMapRemoveNamedItemNS.java77 NamedNodeMap attributes; in testRemoveNamedItemNS1() local
85 attributes = element.getAttributes(); in testRemoveNamedItemNS1()
86 attribute = (Attr) attributes.removeNamedItemNS("http://www.nist.gov", in testRemoveNamedItemNS1()
88 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", in testRemoveNamedItemNS1()
117 NamedNodeMap attributes; in testRemoveNamedItemNS3() local
132 attributes = element.getAttributes(); in testRemoveNamedItemNS3()
133 attribute = (Attr) attributes.removeNamedItemNS( in testRemoveNamedItemNS3()
135 attribute = (Attr) attributes.getNamedItemNS( in testRemoveNamedItemNS3()
142 NamedNodeMap attributes; in _testRemoveNamedItemNS4() local
150 attributes = element.getAttributes(); in _testRemoveNamedItemNS4()
[all …]
DNamedNodeMapSetNamedItemNS.java85 NamedNodeMap attributes; in testSetNamedItemNS1() local
96 attributes = element.getAttributes(); in testSetNamedItemNS1()
99 attribute = (Attr) attributes.getNamedItemNS( in testSetNamedItemNS1()
106 NamedNodeMap attributes; in testSetNamedItemNS2() local
116 attributes = element.getAttributes(); in testSetNamedItemNS2()
117 attributes.setNamedItemNS(attribute1); in testSetNamedItemNS2()
118 attribute = (Attr) attributes.getNamedItemNS( in testSetNamedItemNS2()
127 NamedNodeMap attributes; in testSetNamedItemNS3() local
140 attributes = element.getAttributes(); in testSetNamedItemNS3()
151 attributes.setNamedItemNS(attr); in testSetNamedItemNS3()
[all …]
DNamedNodeMapGetNamedItemNS.java102 NamedNodeMap attributes; in testGetNamedItemNS2() local
111 attributes = element.getAttributes(); in testGetNamedItemNS2()
112 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", in testGetNamedItemNS2()
119 NamedNodeMap attributes; in testGetNamedItemNS3() local
132 attributes = element.getAttributes(); in testGetNamedItemNS3()
133 attribute = (Attr) attributes.getNamedItemNS( in testGetNamedItemNS3()
140 NamedNodeMap attributes; in testGetNamedItemNS4() local
151 attributes = element.getAttributes(); in testGetNamedItemNS4()
152 attribute = (Attr) attributes.getNamedItemNS( in testGetNamedItemNS4()
159 NamedNodeMap attributes; in testGetNamedItemNS5() local
[all …]
DSetNamedItemNS.java111 NamedNodeMap attributes; in testSetNamedItemNS2() local
119 attributes = testAddress.getAttributes(); in testSetNamedItemNS2()
124 attributes.setNamedItemNS(arg); in testSetNamedItemNS2()
138 NamedNodeMap attributes; in testSetNamedItemNS3() local
147 attributes = testAddress.getAttributes(); in testSetNamedItemNS3()
148 attributes.setNamedItemNS(arg); in testSetNamedItemNS3()
149 retnode = attributes.getNamedItemNS(namespaceURI, "newAttr"); in testSetNamedItemNS3()
203 NamedNodeMap attributes; in testSetNamedItemNS5() local
211 attributes = testAddress.getAttributes(); in testSetNamedItemNS5()
212 retnode = attributes.setNamedItemNS(arg); in testSetNamedItemNS5()
DRemoveNamedItemNS.java81 NamedNodeMap attributes; in testRemoveNamedItemNS1() local
87 attributes = testAddress.getAttributes(); in testRemoveNamedItemNS1()
88 removedNode = attributes.removeNamedItemNS("http://www.usa.com", in testRemoveNamedItemNS1()
91 newAttr = (Attr) attributes.getNamedItem("dmstc:domestic"); in testRemoveNamedItemNS1()
100 NamedNodeMap attributes; in testRemoveNamedItemNS2() local
105 attributes = testAddress.getAttributes(); in testRemoveNamedItemNS2()
110 attributes.removeNamedItemNS(namespaceURI, in testRemoveNamedItemNS2()
DGetNamedItemNS.java58 NamedNodeMap attributes; in testGetNamedItemNS1() local
64 attributes = testEmployee.getAttributes(); in testGetNamedItemNS1()
65 domesticAttr = (Attr) attributes.getNamedItemNS("http://www.usa.com", in testGetNamedItemNS1()
76 NamedNodeMap attributes; in testGetNamedItemNS2() local
81 attributes = testEmployee.getAttributes(); in testGetNamedItemNS2()
82 newAttr = (Attr) attributes.getNamedItemNS(namespaceURI, localName); in testGetNamedItemNS2()
/libcore/ojluni/src/main/java/sun/util/locale/
DUnicodeLocaleExtension.java45 private final Set<String> attributes; field in UnicodeLocaleExtension
55 attributes = Collections.emptySet(); in UnicodeLocaleExtension()
59 UnicodeLocaleExtension(SortedSet<String> attributes, SortedMap<String, String> keywords) { in UnicodeLocaleExtension() argument
61 if (attributes != null) { in UnicodeLocaleExtension()
62 this.attributes = attributes; in UnicodeLocaleExtension()
64 this.attributes = Collections.emptySet(); in UnicodeLocaleExtension()
72 if (!this.attributes.isEmpty() || !this.keywords.isEmpty()) { in UnicodeLocaleExtension()
74 for (String attribute : this.attributes) { in UnicodeLocaleExtension()
91 if (attributes == Collections.EMPTY_SET) { in getUnicodeLocaleAttributes()
92 return attributes; in getUnicodeLocaleAttributes()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DElementImpl.java51 private List<AttrImpl> attributes = new ArrayList<AttrImpl>(); field in ElementImpl
64 for (int i = 0; i < attributes.size(); i++) { in indexOfAttribute()
65 AttrImpl attr = attributes.get(i); in indexOfAttribute()
75 for (int i = 0; i < attributes.size(); i++) { in indexOfAttributeNS()
76 AttrImpl attr = attributes.get(i); in indexOfAttributeNS()
113 return attributes.get(i); in getAttributeNode()
123 return attributes.get(i); in getAttributeNodeNS()
137 for (Attr attr : attributes) { in getElementById()
217 return !attributes.isEmpty(); in hasAttributes()
224 attributes.remove(i); in removeAttribute()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dhc_namednodemapchildnoderange.java66 NamedNodeMap attributes; in runTest() local
73 attributes = testEmployee.getAttributes(); in runTest()
74 length = (int) attributes.getLength(); in runTest()
80 child = attributes.item(2); in runTest()
84 child = attributes.item(0); in runTest()
86 child = attributes.item(1); in runTest()
88 child = attributes.item(3); in runTest()
Dnamednodemapchildnoderange.java68 NamedNodeMap attributes; in runTest() local
74 attributes = testEmployee.getAttributes(); in runTest()
75 length = (int) attributes.getLength(); in runTest()
77 child = attributes.item(0); in runTest()
78 child = attributes.item(1); in runTest()
Dnamednodemapremovenameditem.java77 NamedNodeMap attributes; in runTest() local
84 attributes = testAddress.getAttributes(); in runTest()
85 assertNotNull("attributesNotNull", attributes); in runTest()
86 removedNode = attributes.removeNamedItem("street"); in runTest()
87 streetAttr = (Attr) attributes.getNamedItem("street"); in runTest()
Dnamednodemapremovenameditemgetvalue.java79 NamedNodeMap attributes; in runTest() local
86 attributes = testEmployee.getAttributes(); in runTest()
87 assertNotNull("attributesNotNull", attributes); in runTest()
88 removedNode = attributes.removeNamedItem("street"); in runTest()
89 streetAttr = (Attr) attributes.getNamedItem("street"); in runTest()
Dhc_namednodemapremovenameditem.java70 NamedNodeMap attributes; in runTest() local
77 attributes = testAddress.getAttributes(); in runTest()
78 removedNode = attributes.removeNamedItem("class"); in runTest()
79 streetAttr = (Attr) attributes.getNamedItem("class"); in runTest()
Dnamednodemapsetnameditem.java76 NamedNodeMap attributes; in runTest() local
84 attributes = testAddress.getAttributes(); in runTest()
85 setNode = attributes.setNamedItem(newAttribute); in runTest()
86 districtNode = (Attr) attributes.getNamedItem("district"); in runTest()
Dnamednodemapsetnameditemthatexists.java78 NamedNodeMap attributes; in runTest() local
86 attributes = testAddress.getAttributes(); in runTest()
87 setNode = attributes.setNamedItem(newAttribute); in runTest()
88 districtNode = (Attr) attributes.getNamedItem("street"); in runTest()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Dnamednodemapremovenameditemns04.java71 NamedNodeMap attributes; in runTest() local
79 attributes = element.getAttributes(); in runTest()
80 … attributeRemoved = (Attr) attributes.removeNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns"); in runTest()
81 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns"); in runTest()
83 … attributeRemoved = (Attr) attributes.removeNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc"); in runTest()
84 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc"); in runTest()
Dnamednodemapsetnameditemns08.java74 NamedNodeMap attributes; in runTest() local
82 attributes = element.getAttributes(); in runTest()
83 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic"); in runTest()
85 attributes = element.getAttributes(); in runTest()
90 newNode = attributes.setNamedItemNS(attr); in runTest()
Dnamednodemapsetnameditemns06.java72 NamedNodeMap attributes; in runTest() local
80 attributes = element.getAttributes(); in runTest()
81 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic"); in runTest()
83 attributes = element.getAttributes(); in runTest()
88 newNode = attributes.setNamedItemNS(attr); in runTest()
Dnamednodemapsetnameditemns07.java78 NamedNodeMap attributes; in runTest() local
86 attributes = element.getAttributes(); in runTest()
87 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic"); in runTest()
89 attributes = element.getAttributes(); in runTest()
94 newNode = attributes.setNamedItemNS(attr); in runTest()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DXMLReaderAdapter.java462 void setAttributes (Attributes attributes) in setAttributes() argument
464 this.attributes = attributes; in setAttributes()
476 return attributes.getLength(); in getLength()
488 return attributes.getQName(i); in getName()
500 return attributes.getType(i); in getType()
512 return attributes.getValue(i); in getValue()
524 return attributes.getType(qName); in getType()
536 return attributes.getValue(qName); in getValue()
539 private Attributes attributes; field in XMLReaderAdapter.AttributesAdapter
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS9Attributes.java46 private final Hashtable<ObjectIdentifier, PKCS9Attribute> attributes = field in PKCS9Attributes
162 if (attributes.containsKey(oid)) in PKCS9Attributes()
168 attributes.put(oid, attribs[i]); in PKCS9Attributes()
216 if (attributes.get(oid) != null) in decode()
224 attributes.put(oid, attrib); in decode()
245 Object[] attribVals = attributes.values().toArray(); in generateDerEncoding()
265 return attributes.get(oid); in getAttribute()
272 return attributes.get(PKCS9Attribute.getOID(name)); in getAttribute()
280 PKCS9Attribute[] attribs = new PKCS9Attribute[attributes.size()]; in getAttributes()
/libcore/ojluni/src/main/java/java/text/
DAttributedString.java143 Map<? extends Attribute, ?> attributes) in AttributedString() argument
145 if (text == null || attributes == null) { in AttributedString()
151 if (attributes.isEmpty()) in AttributedString()
156 int attributeCount = attributes.size(); in AttributedString()
164 … Iterator<? extends Map.Entry<? extends Attribute, ?>> iterator = attributes.entrySet().iterator(); in AttributedString()
234 Attribute[] attributes) { in AttributedString() argument
257 if (attributes == null) { in AttributedString()
260 for (int i = 0; i < attributes.length; i++) in AttributedString()
261 keys.add(attributes[i]); in AttributedString()
369 public void addAttributes(Map<? extends Attribute, ?> attributes, in addAttributes() argument
[all …]
/libcore/xml/src/main/java/com/android/org/kxml2/io/
DKXmlParser.java176 private String[] attributes = new String[16]; field in KXmlParser
198 String attrName = attributes[i + 2]; in adjustNsp()
219 nspStack[j + 1] = attributes[i + 3]; in adjustNsp()
221 if (attrName != null && attributes[i + 3].isEmpty()) { in adjustNsp()
228 attributes[i] = "http://www.w3.org/2000/xmlns/"; in adjustNsp()
232 attributes, in adjustNsp()
234 attributes, in adjustNsp()
246 String attrName = attributes[i + 2]; in adjustNsp()
264 attributes[i] = attrNs; in adjustNsp()
265 attributes[i + 1] = attrPrefix; in adjustNsp()
[all …]

12345678