Home
last modified time | relevance | path

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

123456789

/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 …]
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 …]
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 …]
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 …]
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 …]
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/ojluni/src/main/java/java/lang/annotation/
DAnnotationTypeMismatchException.java47 private final Method element; field in AnnotationTypeMismatchException
65 public AnnotationTypeMismatchException(Method element, String foundType) { in AnnotationTypeMismatchException() argument
66 super("Incorrectly typed data found for annotation element " + element in AnnotationTypeMismatchException()
68 this.element = element; in AnnotationTypeMismatchException()
77 public Method element() { in element() method in AnnotationTypeMismatchException
78 return this.element; in element()
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DAnnotatedElementTestSupport.java107 AnnotatedElement element, Class<? extends Annotation>... expectedAnnotations) { in checkAnnotatedElementPresentMethods() argument
108 Set<Class<? extends Annotation>> actualTypes = annotationsToTypes(element.getAnnotations()); in checkAnnotatedElementPresentMethods()
113 assertPresent(expectedTypes.contains(AnnotationA.class), element, AnnotationA.class); in checkAnnotatedElementPresentMethods() local
114 assertPresent(expectedTypes.contains(AnnotationB.class), element, AnnotationB.class); in checkAnnotatedElementPresentMethods() local
115 assertPresent(expectedTypes.contains(AnnotationC.class), element, AnnotationC.class); in checkAnnotatedElementPresentMethods() local
116 assertPresent(expectedTypes.contains(AnnotationD.class), element, AnnotationD.class); in checkAnnotatedElementPresentMethods() local
119 element.isAnnotationPresent(null); in checkAnnotatedElementPresentMethods()
125 element.getAnnotation(null); in checkAnnotatedElementPresentMethods()
145 AnnotatedElement element, in checkAnnotatedElementDirectMethods() argument
147 …Set<Class<? extends Annotation>> actualTypes = annotationsToTypes(element.getDeclaredAnnotations()… in checkAnnotatedElementDirectMethods()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSetTest.java711 int element = rnd.nextInt(limit); in populate() local
712 put(set, element); in populate()
735 int element = min + rnd.nextInt(rangeSize); in mutateSet() local
736 assertTrue(element >= min && element <= max); in mutateSet()
737 put(set, element); in mutateSet()
760 int element = min - 5 + rnd.nextInt(rangeSize + 10); in mutateSubSet() local
761 if (element >= min && element <= max) { in mutateSubSet()
762 put(set, element); in mutateSubSet()
765 set.add(element); in mutateSubSet()
772 void put(NavigableSet<Integer> set, int element) { in put() argument
[all …]
DConcurrentSkipListSetTest.java707 int element = rnd.nextInt(limit); in populate() local
708 put(set, element, bs); in populate()
731 int element = min + rnd.nextInt(rangeSize); in mutateSet() local
732 assertTrue(element >= min && element <= max); in mutateSet()
733 put(set, element, bs); in mutateSet()
757 int element = min - 5 + rnd.nextInt(rangeSize + 10); in mutateSubSet() local
758 if (element >= min && element <= max) { in mutateSubSet()
759 put(set, element, bs); in mutateSubSet()
762 set.add(element); in mutateSubSet()
769 void put(NavigableSet<Integer> set, int element, BitSet bs) { in put() argument
[all …]
/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/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 …]

123456789