Searched refs:attributes (Results 1 - 25 of 177) sorted by relevance

12345678

/libcore/luni/src/test/java/libcore/xml/
H A DSaxTest.java41 String qName, Attributes attributes) {
45 assertEquals(1, attributes.getLength());
46 assertEquals("", attributes.getURI(0));
47 assertOneOf("bar", "", attributes.getLocalName(0));
48 assertEquals("bar", attributes.getQName(0));
54 String qName, Attributes attributes) {
58 assertEquals(1, attributes.getLength());
59 assertEquals("", attributes.getURI(0));
60 assertOneOf("a:bar", "", attributes.getLocalName(0));
61 assertEquals("a:bar", attributes
245 startElement( String uri, String localName, String qName, Attributes attributes) argument
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
H A Dnamednodemapchildnoderange.java33 * Create a NamedNodeMap object from the attributes of the
68 NamedNodeMap attributes;
74 attributes = testEmployee.getAttributes();
75 length = (int) attributes.getLength();
77 child = attributes.item(0);
78 child = attributes.item(1);
H A Dhc_namednodemapchildnoderange.java31 * Create a NamedNodeMap object from the attributes of the
66 NamedNodeMap attributes;
73 attributes = testEmployee.getAttributes();
74 length = (int) attributes.getLength();
80 child = attributes.item(2);
84 child = attributes.item(0);
86 child = attributes.item(1);
88 child = attributes.item(3);
H A Dhc_namednodemapremovenameditem.java35 * object of the attributes of the last child. Once the
70 NamedNodeMap attributes;
77 attributes = testAddress.getAttributes();
78 removedNode = attributes.removeNamedItem("class");
79 streetAttr = (Attr) attributes.getNamedItem("class");
H A Dnamednodemapremovenameditem.java35 * object of the attributes of the last child. Once the
77 NamedNodeMap attributes;
84 attributes = testAddress.getAttributes();
85 assertNotNull("attributesNotNull", attributes);
86 removedNode = attributes.removeNamedItem("street");
87 streetAttr = (Attr) attributes.getNamedItem("street");
H A Dnamednodemapremovenameditemgetvalue.java36 * object of the attributes of the last child. Once the
41 * immediately be the attributes value.
79 NamedNodeMap attributes;
86 attributes = testEmployee.getAttributes();
87 assertNotNull("attributesNotNull", attributes);
88 removedNode = attributes.removeNamedItem("street");
89 streetAttr = (Attr) attributes.getNamedItem("street");
H A Dattreffectivevalue.java31 * If an Attr is explicitly assigned any value, then that value is the attributes effective value.
65 NamedNodeMap attributes;
71 attributes = testNode.getAttributes();
72 domesticAttr = (Attr) attributes.getNamedItem("domestic");
H A Dattrentityreplacement.java70 NamedNodeMap attributes;
76 attributes = testNode.getAttributes();
77 streetAttr = (Attr) attributes.getNamedItem("street");
H A Dattrname.java66 NamedNodeMap attributes;
72 attributes = testNode.getAttributes();
73 streetAttr = (Attr) attributes.getNamedItem("street");
H A Dattrnextsiblingnull.java65 NamedNodeMap attributes;
71 attributes = testNode.getAttributes();
72 domesticAttr = (Attr) attributes.getNamedItem("domestic");
H A Dattrparentnodenull.java65 NamedNodeMap attributes;
71 attributes = testNode.getAttributes();
72 domesticAttr = (Attr) attributes.getNamedItem("domestic");
H A Dattrprevioussiblingnull.java65 NamedNodeMap attributes;
71 attributes = testNode.getAttributes();
72 domesticAttr = (Attr) attributes.getNamedItem("domestic");
H A Dattrspecifiedvalue.java68 NamedNodeMap attributes;
74 attributes = testNode.getAttributes();
75 domesticAttr = (Attr) attributes.getNamedItem("domestic");
H A Dattrspecifiedvaluechanged.java69 NamedNodeMap attributes;
76 attributes = testNode.getAttributes();
77 streetAttr = (Attr) attributes.getNamedItem("street");
H A Delementassociatedattribute.java31 * Elements may have attributes associated with them.
36 * Elements can actually have attributes. This test uses
68 NamedNodeMap attributes;
74 attributes = testEmployee.getAttributes();
75 domesticAttr = (Attr) attributes.getNamedItem("domestic");
H A Dhc_attreffectivevalue.java31 * If an Attr is explicitly assigned any value, then that value is the attributes effective value.
64 NamedNodeMap attributes;
70 attributes = testNode.getAttributes();
71 domesticAttr = (Attr) attributes.getNamedItem("title");
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DNamedNodeMapSetNamedItemNS.java42 * http://www.nist.gov", and put its attributes into a named node map. Create a
85 NamedNodeMap attributes;
96 attributes = element.getAttributes();
99 attribute = (Attr) attributes.getNamedItemNS(
106 NamedNodeMap attributes;
116 attributes = element.getAttributes();
117 attributes.setNamedItemNS(attribute1);
118 attribute = (Attr) attributes.getNamedItemNS(
127 NamedNodeMap attributes;
140 attributes
[all...]
H A DNamedNodeMapGetNamedItemNS.java102 NamedNodeMap attributes;
111 attributes = element.getAttributes();
112 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov",
119 NamedNodeMap attributes;
132 attributes = element.getAttributes();
133 attribute = (Attr) attributes.getNamedItemNS(
140 NamedNodeMap attributes;
151 attributes = element.getAttributes();
152 attribute = (Attr) attributes.getNamedItemNS(
159 NamedNodeMap attributes;
[all...]
H A DNamedNodeMapRemoveNamedItemNS.java77 NamedNodeMap attributes;
85 attributes = element.getAttributes();
86 attribute = (Attr) attributes.removeNamedItemNS("http://www.nist.gov",
88 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov",
96 // NamedNodeMap attributes;
107 // attributes = element.getAttributes();
108 // attribute = (Attr) attributes.removeNamedItemNS(nullNS, "defaultAttr");
109 // attribute = (Attr) attributes.getNamedItemNS(nullNS, "defaultAttr");
117 NamedNodeMap attributes;
132 attributes
[all...]
H A DRemoveNamedItemNS.java38 * element from the list and get its attributes. Try to remove the attribute
81 NamedNodeMap attributes;
87 attributes = testAddress.getAttributes();
88 removedNode = attributes.removeNamedItemNS("http://www.usa.com",
91 newAttr = (Attr) attributes.getNamedItem("dmstc:domestic");
100 NamedNodeMap attributes;
105 attributes = testAddress.getAttributes();
110 attributes.removeNamedItemNS(namespaceURI,
130 // NamedNodeMap attributes;
147 // attributes
[all...]
/libcore/ojluni/src/main/java/sun/util/locale/
H A DUnicodeLocaleExtension.java45 private final Set<String> attributes; field in class:UnicodeLocaleExtension
55 attributes = Collections.emptySet();
59 UnicodeLocaleExtension(SortedSet<String> attributes, SortedMap<String, String> keywords) { argument
61 if (attributes != null) {
62 this.attributes = attributes;
64 this.attributes = Collections.emptySet();
72 if (!this.attributes.isEmpty() || !this.keywords.isEmpty()) {
74 for (String attribute : this.attributes) {
91 if (attributes
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A Dnamednodemapremovenameditemns04.java36 * Attempt to remove the xmlns and dmstc attributes of the first element node with the localName
37 * employee. Verify if the 2 attributes were successfully removed.
71 NamedNodeMap attributes;
79 attributes = element.getAttributes();
80 attributeRemoved = (Attr) attributes.removeNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns");
81 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns");
83 attributeRemoved = (Attr) attributes.removeNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc");
84 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc");
H A Dnamednodemapsetnameditemns06.java34 * Retreieve the first element whose localName is address and its attributes into a named node map.
36 * Retreieve the second element whose localName is address and its attributes into a named node map.
72 NamedNodeMap attributes;
80 attributes = element.getAttributes();
81 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic");
83 attributes = element.getAttributes();
88 newNode = attributes.setNamedItemNS(attr);
H A Dnamednodemapsetnameditemns07.java38 * Retreieve the attributes of first element whose localName is address into a named node map.
40 * from the NamedNodeMap. Retreieve the attributes of second element whose localName is address
78 NamedNodeMap attributes;
86 attributes = element.getAttributes();
87 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic");
89 attributes = element.getAttributes();
94 newNode = attributes.setNamedItemNS(attr);
H A Dnamednodemapsetnameditemns08.java36 * Retreieve the first element whose localName is address and its attributes into a named node map.
38 * localName is address and its attributes into a named node map. Invoke setNamedItemNS on the
74 NamedNodeMap attributes;
82 attributes = element.getAttributes();
83 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic");
85 attributes = element.getAttributes();
90 newNode = attributes.setNamedItemNS(attr);

Completed in 388 milliseconds

12345678