Searched refs:element (Results 1 - 25 of 181) sorted by relevance

12345678

/libcore/ojluni/src/main/java/java/lang/annotation/
H A DAnnotationTypeMismatchException.java30 * Thrown to indicate that a program has attempted to access an element of
45 * The <tt>Method</tt> object for the annotation element.
47 private final Method element; field in class:AnnotationTypeMismatchException
58 * annotation type element and found data type.
60 * @param element the <tt>Method</tt> object for the annotation element
65 public AnnotationTypeMismatchException(Method element, String foundType) { argument
66 super("Incorrectly typed data found for annotation element " + element
68 this.element
77 public Method element() { method in class:AnnotationTypeMismatchException
[all...]
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DElementHasAttribute.java11 * specified on this element or has a default value, false otherwise Invoke the
50 Element element;
53 element = doc.getDocumentElement();
54 state = element.hasAttribute("");
61 // Element element;
66 // element = (Element) elementList.item(0);
67 // assertNotNull("empEmployeeNotNull", element);
68 // state = element.hasAttribute("defaultAttr");
73 Element element;
78 element
[all...]
H A DElementGetElementsByTagNameNS.java52 Element element;
55 element = doc.getDocumentElement();
56 elementList = element.getElementsByTagNameNS("**", "*");
62 Element element;
71 element = doc.createElementNS("http://www.w3.org/DOM", "root");
77 element.appendChild(child1);
78 element.appendChild(child2);
79 element.appendChild(child3);
80 elementList = element.getElementsByTagNameNS(nullNS, "child");
83 elementList = element
[all...]
H A DElementHasAttributeNS.java33 * name and namespace URI is specified on this element or has a default value,
36 * Retreive the first employee element node. Invoke the hasAttributeNS method to
76 Element element;
81 element = (Element) elementList.item(0);
82 state = element
88 Element element;
93 element = doc.createElementNS("http://www.w3.org/DOM", "address");
95 element.setAttributeNode(attribute);
96 state = element.hasAttributeNS("http://www.w3.org/DOM", "domestic");
101 Element element;
[all...]
H A DNamedNodeMapGetNamedItemNS.java103 Node element;
110 element = elementList.item(1);
111 attributes = element.getAttributes();
120 Node element;
127 element = doc.createElementNS("http://www.w3.org/DOM/Test", "root");
129 ((Element) /* Node */element).setAttributeNodeNS(newAttr1);
131 ((Element) /* Node */element).setAttributeNodeNS(newAttr2);
132 attributes = element.getAttributes();
141 Element element;
148 element
[all...]
H A DNodeSetPrefix.java43 * Create a new element node with a namespace prefix. Add it to a new
45 * Check if the prefix was set correctly on the element.
84 Element element;
90 element = doc.createElementNS("http://www.w3.org/DOM/Test",
92 docFragment.appendChild(element);
93 element.setPrefix("dmstc");
94 elementTagName = element.getTagName();
95 elementNodeName = element.getNodeName();
104 // Element element;
113 // element
[all...]
H A DElementRemoveAttributeNS.java11 * URI. Create a new element and add a new attribute node to it. Remove the
13 * was remove by invoking the hasAttributeNS method on the element and check if
52 Element element;
57 element = doc.createElementNS("http://www.w3.org/DOM", "elem");
60 element.setAttributeNodeNS(attribute);
61 element.removeAttributeNS(
63 state = element.hasAttributeNS(
H A DNodeHasAttributes.java35 * The method hasAttributes returns whether this node (if it is an element) has
36 * any attributes. Retreive an element node without attributes. Verify if
37 * hasAttributes returns false. Retreive another element node with attributes.
76 Element element;
81 element = (Element) elementList.item(0);
82 hasAttributes = element.hasAttributes();
85 element = (Element) elementList.item(0);
86 hasAttributes = element.hasAttributes();
100 Element element;
105 element
[all...]
H A DNamedNodeMapSetNamedItemNS.java41 * Retreive the first element whose localName is address and namespaceURI
86 Node element;
95 element = elementList.item(0);
96 attributes = element.getAttributes();
98 ((Element) /* Node */element).setAttributeNodeNS(newAttr1);
107 Element element;
113 element = doc.createElementNS("http://www.w3.org/DOM/Test", "root");
116 attributes = element.getAttributes();
131 Element element;
139 element
[all...]
H A DElementGetAttributeNodeNS.java11 * namespace URI. Create a new element node and add 2 new attribute nodes to it
52 Element element;
64 element = doc.createElementNS("namespaceURI", "root");
67 element.setAttributeNodeNS(attribute1);
70 element.setAttributeNodeNS(attribute2);
71 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2",
89 Element element;
94 element = doc.createElementNS("namespaceURI", "root");
97 element.setAttributeNodeNS(attribute);
98 attribute = element
[all...]
H A DAttrGetOwnerElement.java39 // Element element;
50 // element = (Element) elementList.item(1);
51 // attributes = element.getAttributes();
60 Element element;
66 element = doc.createElement("root");
68 element.setAttributeNodeNS(attr);
86 Element element;
96 element = (Element) addresses.item(1);
97 assertNotNull("empAddressNotNull", element);
98 attr = element
[all...]
H A DNamedNodeMapRemoveNamedItemNS.java78 Node element;
84 element = elementList.item(1);
85 attributes = element.getAttributes();
97 // Node element;
106 // element = elementList.item(1);
107 // attributes = element.getAttributes();
118 Node element;
125 element = doc.createElementNS("http://www.w3.org/DOM/Test", "root");
128 ((Element) /* Node */element).setAttributeNodeNS(attribute1);
131 ((Element) /* Node */element)
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A Delementhasattribute03.java35 * on this element or has a default value, false otherwise.
36 * Create an element Node and an attribute Node. Invoke hasAttribute method
37 * to verify that there is no attribute. Append the attribute node to the element node.
38 * Invoke the hasAttribute method on the element and verify if it returns true.
67 Element element;
72 element = doc.createElement("address");
74 state = element.hasAttribute("domestic");
76 newAttribute = element.setAttributeNode(attribute);
77 state = element.hasAttribute("domestic");
H A Dnodehasattributes01.java34 * The method hasAttributes returns whether this node (if it is an element) has any attributes.
35 * Retreive an element node without attributes. Verify if hasAttributes returns false.
36 * Retreive another element node with attributes. Verify if hasAttributes returns true.
64 Element element;
69 element = (Element) elementList.item(0);
70 hasAttributes = element.hasAttributes();
73 element = (Element) elementList.item(0);
74 hasAttributes = element.hasAttributes();
H A DdocumentcreateelementNS01.java47 * The method createElementNS creates an element of the given valid qualifiedName and NamespaceURI.
79 Element element;
88 element = doc.createElementNS(namespaceURI, qualifiedName);
89 nodeName = element.getNodeName();
90 nsURI = element.getNamespaceURI();
91 localName = element.getLocalName();
92 prefix = element.getPrefix();
93 tagName = element.getTagName();
H A Delementgetelementsbytagnamens04.java36 * Create a new element node ('root') and append three newly created child nodes (all have
76 Element element;
85 element = doc.createElementNS("http://www.w3.org/DOM", "root");
89 appendedChild = element.appendChild(child1);
90 appendedChild = element.appendChild(child2);
91 appendedChild = element.appendChild(child3);
92 elementList = element.getElementsByTagNameNS(nullNS, "child");
94 elementList = element.getElementsByTagNameNS("*", "child");
H A DgetElementById02.java68 Element element;
70 element = doc.getElementById("Cancun");
71 assertNull("throw_Null", element);
H A Delementhasattribute04.java35 * on this element or has a default value, false otherwise.
36 * Create an element Node and an attribute Node and add the attribute node to the element.
37 * Invoke the hasAttribute method on the element and verify if the method returns true.
66 Element element;
71 element = doc.createElement("address");
73 newAttribute = element.setAttributeNode(attribute);
74 state = element.hasAttribute("domestic");
H A Delementsetattributens08.java70 Element element;
72 element = doc.createElementNS("http://www.w3.org/DOMTest/level2", "dom:elem");
77 element.setAttributeNS("http://www.w3.org/DOMTest/level2", "xmlns", "test");
87 element.setAttributeNS("http://www.w3.org/DOMTest/level2", "xmlns:root", "test");
H A Dnodehasattributes03.java34 * The method hasAttributes returns whether this node (if it is an element) has any attributes.
35 * Retreive an element node with a default attributes. Verify if hasAttributes returns true.
63 Element element;
68 element = (Element) elementList.item(0);
69 assertNotNull("empEmployeeNotNull", element);
70 hasAttributes = element.hasAttributes();
H A Delementsetattributenodens01.java35 * and that namespace URI is already present in the element, it is replaced
37 * Create a new element and two new attribute nodes (in the same namespace
39 * Add the two new attribute nodes to the element node using the
76 Element element;
87 element = doc.createElementNS("http://www.w3.org/DOM/Test/Level2", "new:element");
91 newAttribute = element.setAttributeNodeNS(attribute1);
92 newAttribute = element.setAttributeNodeNS(attribute2);
93 attrNode = element.getAttributeNodeNS("http://www.w3.org/DOM/Test/att1", "att");
98 attributes = element
[all...]
H A Delementsetattributens03.java35 * Retreive an existing element node with a default attribute node and
74 Element element;
81 element = (Element) elementList.item(0);
82 assertNotNull("empEmployeeNotNull", element);
83 element.setAttributeNS("http://www.w3.org/DOM/Test/1", "defaultAttr", "default1");
84 element.setAttributeNS("http://www.w3.org/DOM/Test/2", "defaultAttr", "default2");
85 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Test/1", "defaultAttr");
H A Dnodesetprefix01.java38 * Create a new element node with a namespace prefix. Add it to a new DocumentFragment Node without
39 * a prefix. Call setPrefix on the elemen node. Check if the prefix was set correctly on the element.
74 Element element;
80 element = doc.createElementNS("http://www.w3.org/DOM/Test", "emp:address");
81 appendedChild = docFragment.appendChild(element);
82 element.setPrefix("dmstc");
83 elementTagName = element.getTagName();
84 elementNodeName = element.getNodeName();
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
H A DAnnotatedElementTestSupport.java95 * <p>Asserts that calling {@link AnnotatedElement#getAnnotations()} on the supplied element
107 AnnotatedElement element, Class<? extends Annotation>... expectedAnnotations) {
108 Set<Class<? extends Annotation>> actualTypes = annotationsToTypes(element.getAnnotations());
113 assertPresent(expectedTypes.contains(AnnotationA.class), element, AnnotationA.class);
114 assertPresent(expectedTypes.contains(AnnotationB.class), element, AnnotationB.class);
115 assertPresent(expectedTypes.contains(AnnotationC.class), element, AnnotationC.class);
116 assertPresent(expectedTypes.contains(AnnotationD.class), element, AnnotationD.class);
119 element.isAnnotationPresent(null);
125 element.getAnnotation(null);
135 * element return
106 checkAnnotatedElementPresentMethods( AnnotatedElement element, Class<? extends Annotation>... expectedAnnotations) argument
144 checkAnnotatedElementDirectMethods( AnnotatedElement element, Class<? extends Annotation>... expectedDeclaredAnnotations) argument
174 assertPresent(boolean present, AnnotatedElement element, Class<? extends Annotation> annotation) argument
185 assertDeclared(boolean present, AnnotatedElement element, Class<? extends Annotation> annotation) argument
202 assertIsAnnotationPresent( AnnotatedElement element, Class<? extends Annotation> annotationType, boolean expected) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DQueue.java73 * <td>{@link Queue#element element()}</td>
84 * element which would be removed by a call to {@link #remove() } or
90 * <p>The {@link #offer offer} method inserts an element if possible,
93 * add an element only by throwing an unchecked exception. The
100 * Exactly which element is removed from the queue is a
107 * <p>The {@link #element()} and {@link #peek()} methods return, but do
125 * element-based versions of methods {@code equals} and
127 * from class {@code Object}, because element-based equality is not
137 * Inserts the specified element int
200 E element(); method in interface:Queue
[all...]

Completed in 446 milliseconds

12345678