Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 188) sorted by relevance

12345678

/libcore/luni/src/test/java/tests/org/w3c/dom/
DNamedNodeMapRemoveNamedItemNS.java78 Node element; in testRemoveNamedItemNS1() local
84 element = elementList.item(1); in testRemoveNamedItemNS1()
85 attributes = element.getAttributes(); in testRemoveNamedItemNS1()
118 Node element; in testRemoveNamedItemNS3() local
125 element = doc.createElementNS("http://www.w3.org/DOM/Test", "root"); in testRemoveNamedItemNS3()
128 ((Element) /* Node */element).setAttributeNodeNS(attribute1); in testRemoveNamedItemNS3()
131 ((Element) /* Node */element).setAttributeNodeNS(attribute2); in testRemoveNamedItemNS3()
132 attributes = element.getAttributes(); in testRemoveNamedItemNS3()
143 Node element; in _testRemoveNamedItemNS4() local
149 element = elementList.item(0); in _testRemoveNamedItemNS4()
[all …]
DNodeSetPrefix.java84 Element element; in testSetPrefix1() local
90 element = doc.createElementNS("http://www.w3.org/DOM/Test", in testSetPrefix1()
92 docFragment.appendChild(element); in testSetPrefix1()
93 element.setPrefix("dmstc"); in testSetPrefix1()
94 elementTagName = element.getTagName(); in testSetPrefix1()
95 elementNodeName = element.getNodeName(); in testSetPrefix1()
127 Element element; in testSetPrefix3() local
129 element = doc.createElement("address"); in testSetPrefix3()
134 element.setPrefix("test"); in testSetPrefix3()
168 Element element; in testSetPrefix5() local
[all …]
DNamedNodeMapSetNamedItemNS.java86 Node element; in testSetNamedItemNS1() local
95 element = elementList.item(0); in testSetNamedItemNS1()
96 attributes = element.getAttributes(); in testSetNamedItemNS1()
98 ((Element) /* Node */element).setAttributeNodeNS(newAttr1); in testSetNamedItemNS1()
107 Element element; in testSetNamedItemNS2() local
113 element = doc.createElementNS("http://www.w3.org/DOM/Test", "root"); in testSetNamedItemNS2()
116 attributes = element.getAttributes(); in testSetNamedItemNS2()
131 Element element; in testSetNamedItemNS3() local
139 element = (Element) elementList.item(1); in testSetNamedItemNS3()
140 attributes = element.getAttributes(); in testSetNamedItemNS3()
[all …]
DElementHasAttribute.java50 Element element; in testHasAttribute1() local
53 element = doc.getDocumentElement(); in testHasAttribute1()
54 state = element.hasAttribute(""); in testHasAttribute1()
73 Element element; in testHasAttribute3() local
78 element = doc.createElement("address"); in testHasAttribute3()
80 state = element.hasAttribute("domestic"); in testHasAttribute3()
82 element.setAttributeNode(attribute); in testHasAttribute3()
83 state = element.hasAttribute("domestic"); in testHasAttribute3()
88 Element element; in testHasAttribute4() local
93 element = doc.createElement("address"); in testHasAttribute4()
[all …]
DElementSetAttributeNS.java57 Element element; in testSetAttributeNS1() local
62 element = doc.createElementNS("http://www.w3.org/DOM", "dom:elem"); in testSetAttributeNS1()
63 element.setAttributeNS("http://www.w3.org/DOM/Test/setAttributeNS", in testSetAttributeNS1()
65 attribute = element.getAttributeNodeNS( in testSetAttributeNS1()
74 Element element; in testSetAttributeNS2() local
81 element = (Element) elementList.item(0); in testSetAttributeNS2()
82 element.setAttributeNS("http://www.w3.org/DOM/Test/setAttributeNS", in testSetAttributeNS2()
84 attribute = element.getAttributeNodeNS( in testSetAttributeNS2()
95 Element element; in testSetAttributeNS3() local
102 element = (Element) elementList.item(0); in testSetAttributeNS3()
[all …]
DElementGetElementsByTagNameNS.java52 Element element; in testGetElementsByTagNameNS1() local
55 element = doc.getDocumentElement(); in testGetElementsByTagNameNS1()
56 elementList = element.getElementsByTagNameNS("**", "*"); in testGetElementsByTagNameNS1()
62 Element element; in testGetElementsByTagNameNS4() local
71 element = doc.createElementNS("http://www.w3.org/DOM", "root"); in testGetElementsByTagNameNS4()
77 element.appendChild(child1); in testGetElementsByTagNameNS4()
78 element.appendChild(child2); in testGetElementsByTagNameNS4()
79 element.appendChild(child3); in testGetElementsByTagNameNS4()
80 elementList = element.getElementsByTagNameNS(nullNS, "child"); in testGetElementsByTagNameNS4()
83 elementList = element.getElementsByTagNameNS("*", "child"); in testGetElementsByTagNameNS4()
[all …]
DElementHasAttributeNS.java76 Element element; in _testHasAttributeNS1() local
81 element = (Element) elementList.item(0); in _testHasAttributeNS1()
82 state = element in _testHasAttributeNS1()
88 Element element; in testHasAttributeNS2() local
93 element = doc.createElementNS("http://www.w3.org/DOM", "address"); in testHasAttributeNS2()
95 element.setAttributeNode(attribute); in testHasAttributeNS2()
96 state = element.hasAttributeNS("http://www.w3.org/DOM", "domestic"); in testHasAttributeNS2()
101 Element element; in testHasAttributeNS3() local
108 element = doc.createElementNS("http://www.w3.org/DOM", "address"); in testHasAttributeNS3()
109 assertNotNull("createElementNotNull", element); in testHasAttributeNS3()
[all …]
DNamedNodeMapGetNamedItemNS.java103 Node element; in testGetNamedItemNS2() local
110 element = elementList.item(1); in testGetNamedItemNS2()
111 attributes = element.getAttributes(); in testGetNamedItemNS2()
120 Node element; in testGetNamedItemNS3() local
127 element = doc.createElementNS("http://www.w3.org/DOM/Test", "root"); in testGetNamedItemNS3()
129 ((Element) /* Node */element).setAttributeNodeNS(newAttr1); in testGetNamedItemNS3()
131 ((Element) /* Node */element).setAttributeNodeNS(newAttr2); in testGetNamedItemNS3()
132 attributes = element.getAttributes(); in testGetNamedItemNS3()
141 Element element; in testGetNamedItemNS4() local
148 element = (Element) elementList.item(1); in testGetNamedItemNS4()
[all …]
DNodeHasAttributes.java76 Element element; in testHasAttributes1() local
81 element = (Element) elementList.item(0); in testHasAttributes1()
82 hasAttributes = element.hasAttributes(); in testHasAttributes1()
85 element = (Element) elementList.item(0); in testHasAttributes1()
86 hasAttributes = element.hasAttributes(); in testHasAttributes1()
100 Element element; in testHasAttributes3() local
105 element = (Element) elementList.item(0); in testHasAttributes3()
106 assertNotNull("empEmployeeNotNull", element); in testHasAttributes3()
107 hasAttributes = element.hasAttributes(); in testHasAttributes3()
116 Element element; in testHasAttributes4() local
[all …]
DAttrGetOwnerElement.java60 Element element; in testGetOwnerElement2() local
66 element = doc.createElement("root"); in testGetOwnerElement2()
68 element.setAttributeNodeNS(attr); in testGetOwnerElement2()
86 Element element; in testGetOwnerElement4() local
96 element = (Element) addresses.item(1); in testGetOwnerElement4()
97 assertNotNull("empAddressNotNull", element); in testGetOwnerElement4()
98 attr = element.getAttributeNodeNS("http://www.nist.gov", "zone"); in testGetOwnerElement4()
105 Node element; in testGetOwnerElement5() local
117 element = elementList.item(1); in testGetOwnerElement5()
118 parentElement = (Element) element.getParentNode(); in testGetOwnerElement5()
[all …]
DElementSetAttributeNodeNS.java78 Element element; in testSetAttributeNodeNS1() local
89 element = doc.createElementNS("http://www.w3.org/DOM/Test/Level2", in testSetAttributeNodeNS1()
96 element.setAttributeNodeNS(attribute1); in testSetAttributeNodeNS1()
97 element.setAttributeNodeNS(attribute2); in testSetAttributeNodeNS1()
98 attrNode = element.getAttributeNodeNS( in testSetAttributeNodeNS1()
105 attributes = element.getAttributes(); in testSetAttributeNodeNS1()
111 Element element; in testSetAttributeNodeNS2() local
124 element = (Element) elementList.item(1); in testSetAttributeNodeNS2()
125 attribute = element.getAttributeNodeNS(nullNS, "street"); in testSetAttributeNodeNS2()
185 Element element; in testSetAttributeNodeNS5() local
[all …]
DElementGetAttributeNodeNS.java52 Element element; in testGetAttributeNodeNS1() local
64 element = doc.createElementNS("namespaceURI", "root"); in testGetAttributeNodeNS1()
67 element.setAttributeNodeNS(attribute1); in testGetAttributeNodeNS1()
70 element.setAttributeNodeNS(attribute2); in testGetAttributeNodeNS1()
71 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", in testGetAttributeNodeNS1()
89 Element element; in testGetAttributeNodeNS2() local
94 element = doc.createElementNS("namespaceURI", "root"); in testGetAttributeNodeNS2()
97 element.setAttributeNodeNS(attribute); in testGetAttributeNodeNS2()
98 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", in testGetAttributeNodeNS2()
DElementRemoveAttributeNS.java52 Element element; in testRemoveAttributeNS() local
57 element = doc.createElementNS("http://www.w3.org/DOM", "elem"); in testRemoveAttributeNS()
60 element.setAttributeNodeNS(attribute); in testRemoveAttributeNS()
61 element.removeAttributeNS( in testRemoveAttributeNS()
63 state = element.hasAttributeNS( in testRemoveAttributeNS()
/libcore/luni/src/main/java/java/lang/annotation/
DAnnotationTypeMismatchException.java32 private Method element; field in AnnotationTypeMismatchException
46 public AnnotationTypeMismatchException(Method element, String foundType) { in AnnotationTypeMismatchException() argument
47 super("The annotation element " + element + " doesn't match the type " + foundType); in AnnotationTypeMismatchException()
48 this.element = element; in AnnotationTypeMismatchException()
57 public Method element() { in element() method in AnnotationTypeMismatchException
58 return element; in element()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DdocumentcreateelementNS01.java79 Element element; in runTest() local
88 element = doc.createElementNS(namespaceURI, qualifiedName); in runTest()
89 nodeName = element.getNodeName(); in runTest()
90 nsURI = element.getNamespaceURI(); in runTest()
91 localName = element.getLocalName(); in runTest()
92 prefix = element.getPrefix(); in runTest()
93 tagName = element.getTagName(); in runTest()
Delementgetelementsbytagnamens04.java76 Element element; in runTest() local
85 element = doc.createElementNS("http://www.w3.org/DOM", "root"); in runTest()
89 appendedChild = element.appendChild(child1); in runTest()
90 appendedChild = element.appendChild(child2); in runTest()
91 appendedChild = element.appendChild(child3); in runTest()
92 elementList = element.getElementsByTagNameNS(nullNS, "child"); in runTest()
94 elementList = element.getElementsByTagNameNS("*", "child"); in runTest()
Delementsetattributens03.java74 Element element; in runTest() local
81 element = (Element) elementList.item(0); in runTest()
82 assertNotNull("empEmployeeNotNull", element); in runTest()
83 element.setAttributeNS("http://www.w3.org/DOM/Test/1", "defaultAttr", "default1"); in runTest()
84 element.setAttributeNS("http://www.w3.org/DOM/Test/2", "defaultAttr", "default2"); in runTest()
85 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Test/1", "defaultAttr"); in runTest()
Dnodesetprefix01.java74 Element element; in runTest() local
80 element = doc.createElementNS("http://www.w3.org/DOM/Test", "emp:address"); in runTest()
81 appendedChild = docFragment.appendChild(element); in runTest()
82 element.setPrefix("dmstc"); in runTest()
83 elementTagName = element.getTagName(); in runTest()
84 elementNodeName = element.getNodeName(); in runTest()
Dnodeissupported01.java68 Element element; in runTest() local
84 element = doc.getDocumentElement(); in runTest()
87 success = element.isSupported(featureXML, version); in runTest()
89 success = element.isSupported(featureXML, version1); in runTest()
94 success = element.isSupported(featureCore, version); in runTest()
96 success = element.isSupported(featureCore, version1); in runTest()
97 success = element.isSupported(featureCore, version2); in runTest()
Delementhasattribute03.java67 Element element; in runTest() local
72 element = doc.createElement("address"); in runTest()
74 state = element.hasAttribute("domestic"); in runTest()
76 newAttribute = element.setAttributeNode(attribute); in runTest()
77 state = element.hasAttribute("domestic"); in runTest()
Dnodehasattributes01.java64 Element element; in runTest() local
69 element = (Element) elementList.item(0); in runTest()
70 hasAttributes = element.hasAttributes(); in runTest()
73 element = (Element) elementList.item(0); in runTest()
74 hasAttributes = element.hasAttributes(); in runTest()
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
DASN1Oid.java139 int element = octet & 0x7F;
145 element = element << 7 | (octet & 0x7F);
148 if (element > 79) {
151 buf.append(element - 80);
153 buf.append(element / 40);
155 buf.append(element % 40);
164 element = octet & 0x7F;
169 element = element << 7 | (octet & 0x7f);
172 buf.append(element);
/libcore/luni/src/test/java/libcore/xml/
DJaxenXPathTestSuite.java104 InputSource inputSource, Element element) { in contextToTestSuite() argument
119 String select = element.getAttribute("select"); in contextToTestSuite()
123 xpath.setXPathVariableResolver(new ElementVariableResolver(element)); in contextToTestSuite()
125 for (Element test : elementsOf(element.getChildNodes())) { in contextToTestSuite()
151 final XPath xpath, final Context context, final Element element) { in createFromTest() argument
152 final String select = element.getAttribute("select"); in createFromTest()
155 if (element.getAttribute("exception").equals("true")) { in createFromTest()
168 NodeList valueOfElements = element.getElementsByTagName("valueOf"); in createFromTest()
184 final String count = element.getAttribute("count"); in createFromTest()
203 final XPath xpath, final Context context, final Element element) {
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSetTest.java710 int element = rnd.nextInt(limit); in populate() local
711 put(set, element); in populate()
734 int element = min + rnd.nextInt(rangeSize); in mutateSet() local
735 assertTrue(element >= min && element<= max); in mutateSet()
736 put(set, element); in mutateSet()
759 int element = min - 5 + rnd.nextInt(rangeSize + 10); in mutateSubSet() local
760 if (element >= min && element<= max) { in mutateSubSet()
761 put(set, element); in mutateSubSet()
764 set.add(element); in mutateSubSet()
771 void put(NavigableSet<Integer> set, int element) { in put() argument
[all …]
DConcurrentSkipListSetTest.java704 int element = rnd.nextInt(limit); in populate() local
705 put(set, element, bs); in populate()
728 int element = min + rnd.nextInt(rangeSize); in mutateSet() local
729 assertTrue(element >= min && element<= max); in mutateSet()
730 put(set, element, bs); in mutateSet()
754 int element = min - 5 + rnd.nextInt(rangeSize + 10); in mutateSubSet() local
755 if (element >= min && element<= max) { in mutateSubSet()
756 put(set, element, bs); in mutateSubSet()
759 set.add(element); in mutateSubSet()
766 void put(NavigableSet<Integer> set, int element, BitSet bs) { in put() argument
[all …]

12345678