Searched refs:element (Results 101 - 125 of 181) sorted by relevance

12345678

/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A Dnodegetnamespaceuri03.java38 * Ceate two new element nodes and atribute nodes, with and without namespace prefixes.
74 Element element;
85 element = doc.createElementNS(nullNS, "elem");
90 elemNSURINull = element.getNamespaceURI();
H A Dnodegetprefix03.java36 * Ceate two new element nodes and atribute nodes, with and without namespace prefixes.
72 Element element;
81 element = doc.createElementNS("http://www.w3.org/DOM/Test/elem", "elem");
85 elemNoPrefix = element.getPrefix();
H A Dnodesetprefix03.java36 * Create a new element node without a namespace prefix. Call setPrefix on the newly created elemenent node.
71 Element element;
73 element = doc.createElement("address");
78 element.setPrefix("test");
H A Dnodesetprefix05.java35 * Create a new namespace aware element node and call the setPrefix method on it with several malformed
70 Element element;
80 element = doc.createElementNS("http://www.w3.org/DOM/Test/L2", "dom:elem");
87 element.setPrefix(prefixValue);
H A Dnamednodemapsetnameditemns03.java38 * Retreieve the second element whose local name is address and its attribute into a named node map.
83 Element element;
91 element = (Element) elementList.item(1);
92 attributes = element.getAttributes();
H A DdocumentcreateelementNS06.java73 Element element;
83 element = newDoc.createElementNS(namespaceURI, qualifiedName);
H A Ddocumentimportnode20.java40 * from this document to a new document object. The replacement text of this entity is an element
42 * imported correctly by checking the nodeNames of the imported element node, the data for the
87 Element element;
105 element = (Element) childList.item(0);
106 elemchildList = element.getChildNodes();
H A Ddocumentimportnode21.java40 * second element node whose tagName is address and import these nodes into another document.
88 Element element;
106 element = (Element) addressList.item(1);
107 addressChildList = element.getChildNodes();
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DNodeGetLocalName.java35 * Ceate two new element nodes and atribute nodes, with and without namespace prefixes.
71 Element element;
80 element = doc.createElementNS("http://www.w3.org/DOM/Test/elem", "elem");
84 localElemName = element.getLocalName();
H A DNodeGetNamespaceURI.java37 * Ceate two new element nodes and atribute nodes, with and without namespace prefixes.
73 Element element;
84 element = doc.createElementNS(nullNS, "elem");
89 elemNSURINull = element.getNamespaceURI();
H A DNodeGetPrefix.java35 * Ceate two new element nodes and atribute nodes, with and without namespace prefixes.
72 Element element;
81 element = doc.createElementNS("http://www.w3.org/DOM/Test/elem", "elem");
85 elemNoPrefix = element.getPrefix();
H A DNodeIsSupported.java42 * Call the isSupported method on the document element node with a combination
84 Element element;
100 element = doc.getDocumentElement();
103 success = element.isSupported(featureXML, version);
105 success = element.isSupported(featureXML, version1);
110 success = element.isSupported(featureCore, version);
112 success = element.isSupported(featureCore, version1);
113 success = element.isSupported(featureCore, version2);
H A DDocumentGetElementsByTagnameNS.java77 Element element;
82 element = doc.createElementNS("test", "employeeId");
83 docElem.appendChild(element);
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DAnnotationTypeMismatchExceptionTest.java43 assertSame("wrong method name", m, e.element());
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DInnerNodeImpl.java238 ElementImpl element = (ElementImpl) node;
239 if (matchesNameOrWildcard(name, element.getNodeName())) {
240 out.add(element);
242 element.getElementsByTagName(out, name);
250 ElementImpl element = (ElementImpl) node;
251 if (matchesNameOrWildcard(namespaceURI, element.getNamespaceURI())
252 && matchesNameOrWildcard(localName, element.getLocalName())) {
253 out.add(element);
255 element.getElementsByTagNameNS(out, namespaceURI, localName);
/libcore/ojluni/src/main/java/java/util/
H A DAbstractQueue.java47 * {@link #element element} are based on {@link #offer offer}, {@link
75 * Inserts the specified element into this queue if it is possible to do so
83 * @param e the element to add
85 * @throws IllegalStateException if the element cannot be added at this
87 * @throws ClassCastException if the class of the specified element
89 * @throws NullPointerException if the specified element is null and
91 * @throws IllegalArgumentException if some property of this element
131 public E element() { method in class:AbstractQueue
159 * and adds each element returne
[all...]
H A DDeque.java40 * A linear collection that supports element insertion and removal at
49 * examine the element. Each of these methods exists in two forms:
126 * <td>{@link java.util.Queue#element element()}</td>
181 * element-based versions of the {@code equals} and {@code hashCode}
194 * Inserts the specified element at the front of this deque if it is
200 * @param e the element to add
201 * @throws IllegalStateException if the element cannot be added at this
203 * @throws ClassCastException if the class of the specified element
205 * @throws NullPointerException if the specified element i
465 E element(); method in interface:Deque
[all...]
H A DList.java32 * interface has precise control over where in the list each element is
59 * <tt>ListIterator</tt>, that allows element insertion and replacement, and
79 * add an ineligible element throws an unchecked exception, typically
81 * to query the presence of an ineligible element may throw an exception,
84 * operation on an ineligible element whose completion would not result in
85 * the insertion of an ineligible element into the list may throw an
131 * Returns <tt>true</tt> if this list contains the specified element.
133 * at least one element <tt>e</tt> such that
136 * @param o element whose presence in this list is to be tested
137 * @return <tt>true</tt> if this list contains the specified element
586 set(int index, E element) argument
607 add(int index, E element) argument
[all...]
H A DLinkedList.java44 * an element is not a structural modification.) This is typically
123 * Links e as first element.
138 * Links e as last element.
153 * Inserts element e before non-null Node succ.
173 final E element = f.item;
184 return element;
192 final E element = l.item;
203 return element;
211 final E element = x.item;
232 return element;
489 set(int index, E element) argument
506 add(int index, E element) argument
662 public E element() { method in class:LinkedList
975 Node(Node<E> prev, E element, Node<E> next) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DAbstractAlgorithmConstraints.java100 for (String element : elements) {
101 if (item.equalsIgnoreCase(element)) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
H A DMatcherTest.java147 for (String element : testPatterns) {
148 Pattern test = Pattern.compile(element);
152 for (String element : testPatterns) {
153 assertEquals(element, Pattern.compile(element).matcher("aaa")
248 for (String element : groupPatterns) {
249 Pattern test = Pattern.compile(element);
259 for (String element : groupPatterns) {
260 Pattern test = Pattern.compile(element);
440 for (String element
[all...]
/libcore/luni/src/test/java/libcore/java/lang/annotation/
H A DAnnotationTypeMismatchExceptionTest.java29 assertSame(m, ex.element());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DCheckedOutputStreamTest.java94 for (byte element : byteArray) {
95 chkOut.write(element);
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java85 * actions subsequent to the access or removal of that element from
182 * @param o element to search for
186 * @return index of element, or -1 if absent
204 * @param o element to search for
207 * @return index of element, or -1 if absent
223 * Returns {@code true} if this list contains the specified element.
225 * at least one element {@code e} such that {@code Objects.equals(o, e)}.
227 * @param o element whose presence in this list is to be tested
228 * @return {@code true} if this list contains the specified element
244 * Returns the index of the first occurrence of the specified element i
407 set(int index, E element) argument
449 add(int index, E element) argument
1217 set(int index, E element) argument
1242 add(int index, E element) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
H A DDocumentBuilderImpl.java166 * root element, for example). The assumption is that the DOM implementation
222 * document element is always ignored.
254 * Found an element start tag. We create an element node with
258 * element end tag. The whole handling differs somewhat
262 // Collect info for element node
271 // Create element node and wire it correctly
272 Element element = document.createElementNS(namespace, name);
273 element.setPrefix(prefix);
274 node.appendChild(element);
[all...]

Completed in 357 milliseconds

12345678