Searched defs:node (Results 1 - 25 of 34) sorted by relevance

12

/libcore/luni/src/test/java/libcore/xml/
H A DSimpleBuilderTest.java46 private String getTextContent(Node node) { argument
47 String result = (node instanceof Text ? ((Text) node).getData() : "");
49 Node child = node.getFirstChild();
97 Node node = list.item(i);
99 if (node instanceof ProcessingInstruction) {
100 proinst = proinst + node.getNodeValue();
101 } else if (node instanceof Comment) {
102 comment = comment + node.getNodeValue();
H A DNodeTest.java55 for (Node node : flattenSubtree(documentElement)) {
56 if (node.getNodeType() == Node.ELEMENT_NODE
57 || node.getNodeType() == Node.DOCUMENT_NODE) {
58 assertFileUriEquals(file, node.getBaseURI());
60 assertNull("Unexpected base URI for " + node, node.getBaseURI());
64 // TODO: test other node types
81 private void traverse(Node node, List<Node> sink) { argument
82 sink.add(node);
84 NodeList children = node
[all...]
H A DXsltXPathConformanceTestSuite.java428 * Returns the given file's XML fragment as a single node, wrapped in
470 private String nodeToNormalizedString(Node node) argument
476 emitNode(xmlSerializer, node);
481 private void emitNode(XmlSerializer serializer, Node node) throws IOException { argument
482 if (node == null) {
485 } else if (node.getNodeType() == Node.ELEMENT_NODE) {
486 Element element = (Element) node;
492 } else if (node.getNodeType() == Node.TEXT_NODE
493 || node.getNodeType() == Node.CDATA_SECTION_NODE) {
496 String trimmed = node
526 emitAttributes(XmlSerializer serializer, Node node) argument
556 emitChildren(XmlSerializer serializer, Node node) argument
[all...]
/libcore/luni/src/main/java/javax/xml/transform/dom/
H A DDOMResult.java28 * <p>If no output DOM source is set, the transformation will create a Document node as the holder for the result of the transformation,
45 * <p><code>node</code>,
57 * <p>Use a DOM node to create a new output target.</p>
59 * <p>In practice, the node should be
60 * a {@link org.w3c.dom.Document} node,
61 * a {@link org.w3c.dom.DocumentFragment} node, or
62 * a {@link org.w3c.dom.Element} node.
63 * In other words, a node that accepts children.</p>
69 * @param node The DOM node tha
71 DOMResult(Node node) argument
91 DOMResult(Node node, String systemId) argument
126 DOMResult(Node node, Node nextSibling) argument
175 DOMResult(Node node, Node nextSibling, String systemId) argument
216 setNode(Node node) argument
337 private Node node = null; field in class:DOMResult
[all...]
H A DDOMSource.java43 private Node node; field in class:DOMSource
60 * no DOM source is set using {@link #setNode(Node node)} , then the
70 * Create a new input source with a DOM node. The operation
71 * will be applied to the subtree rooted at this node. In XSLT,
74 * from the root node also.
76 * @param n The DOM node that will contain the Source tree.
83 * Create a new input source with a DOM node, and with the
86 * @param node The DOM node that will contain the Source tree.
87 * @param systemID Specifies the base URI associated with node
89 DOMSource(Node node, String systemID) argument
99 setNode(Node node) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DLeafNodeImpl.java65 boolean isParentOf(Node node) { argument
H A DNodeListImpl.java46 void add(NodeImpl node) { argument
47 children.add(node);
H A DInnerNodeImpl.java58 for (NodeImpl node : children) {
59 list.add(node);
105 * another node, it is removed from there.
137 public boolean isParentOf(Node node) { argument
138 LeafNodeImpl nodeImpl = (LeafNodeImpl) node;
158 for (Node node = getFirstChild(); node != null; node = next) {
159 next = node.getNextSibling();
160 node
[all...]
H A DDOMConfigurationImpl.java272 * True to report invalid characters in node names, attributes, elements,
374 public void normalize(Node node) { argument
383 switch (node.getNodeType()) {
385 CDATASectionImpl cdata = (CDATASectionImpl) node;
398 node = cdata.replaceWithText();
402 TextImpl text = (TextImpl) node;
410 CommentImpl comment = (CommentImpl) node;
422 checkTextValidity(((ProcessingInstructionImpl) node).getData());
426 checkTextValidity(((AttrImpl) node).getValue());
430 ElementImpl element = (ElementImpl) node;
[all...]
H A DDocumentImpl.java69 * <p>Attaching user data directly to the corresponding node would cost a
70 * field per node. Under the assumption that user data is rarely needed, we
119 * Returns a shallow copy of the given node. If the node is an element node,
122 * @param node a node belonging to any document or DOM implementation.
125 * responsibility to notify user data handlers of the returned node.
126 * @return a new node whose document is this document and whose DOM
129 private NodeImpl shallowCopy(short operation, Node node) { argument
219 cloneOrImportNode(short operation, Node node, boolean deep) argument
242 adoptNode(Node node) argument
291 changeDocumentToThis(NodeImpl node) argument
313 renameNode(Node node, String namespaceURI, String qualifiedName) argument
495 getUserDataMap(NodeImpl node) argument
511 getUserDataMapForRead(NodeImpl node) argument
[all...]
H A DNodeImpl.java37 * A straightforward implementation of the corresponding W3C DOM node.
190 "Unsupported node type " + getNodeType());
198 * Validates the element or attribute namespace prefix on this node.
200 * @param namespaceAware whether this node is namespace aware
201 * @param namespaceURI this node's namespace URI
221 * Sets {@code node} to be namespace-aware and assigns its namespace URI
224 * @param node an element or attribute node.
225 * @param namespaceURI this node's namespace URI. May be null.
228 static void setNameNS(NodeImpl node, Strin argument
277 setName(NodeImpl node, String name) argument
600 createEqualityKey(Node node) argument
[all...]
/libcore/luni/src/main/java/java/util/prefs/
H A DPreferenceChangeEvent.java43 private final Preferences node; field in class:PreferenceChangeEvent
63 node = p;
94 return node;
H A DPreferences.java26 * An instance of the class {@code Preferences} represents one node in a
33 * Every node has one name and one unique absolute path following the same
34 * notational conventions as directories in a file system. The root node's
35 * name is "", and other node name strings cannot contain the slash character
36 * and cannot be empty. The root node's absolute path is "/", and all other
38 * absolute path&gt; + "/" + &lt;node's name&gt;. Since the set of nodes forms a
39 * tree with the root node at its base, all absolute paths start with the slash
40 * character. Every node has one relative path to each of its ancestors. The
41 * relative path doesn't start with slash: it equals the node's absolute path
125 * Gets the absolute path string of this preference node
494 public abstract Preferences node(String path); method in class:Preferences
[all...]
H A DXMLParser.java65 + " <!ELEMENT root (map, node*) >"
67 + " <!ELEMENT node (map, node*) >"
68 + " <!ATTLIST node name CDATA #REQUIRED >"
182 flushStartTag("node", new String[] { "name" }, new String[] { name }, out);
192 flushEndTag("node", out);
201 Preferences child = prefs.node(names[i]);
202 flushStartTag("node", new String[] { "name" }, new String[] { names[i] }, out);
205 flushEndTag("node", out);
355 // load node
364 loadNode(Preferences prefs, Element node) argument
[all...]
H A DAbstractPreferences.java86 /** true if this node is in user preference hierarchy */
95 * The object used to lock this node.
100 * This field is true if this node is created while it doesn't exist in the
102 * when the node creation is completed, and if it is true, the node change
103 * event will be fired for this node's parent.
114 //this node's name
117 //handler to this node's parent
120 //true if this node has been removed
123 //handler to this node'
525 public Preferences node(String name) { method in class:AbstractPreferences
[all...]
/libcore/benchmarks/src/benchmarks/
H A DXmlParseBenchmark.java114 private int countDomElements(Node node) { argument
116 for (; node != null; node = node.getNextSibling()) {
117 if (node.getNodeType() == Node.ELEMENT_NODE) {
120 result += countDomElements(node.getFirstChild());
/libcore/luni/src/main/java/java/util/
H A DUUID.java54 private transient long node; field in class:UUID
111 // setup node field
112 node = (leastSigBits & 0x0000FFFFFFFFFFFFL);
304 * The node value of the version 1, variant 2 UUID as per <a
311 public long node() { method in class:UUID
315 return node;
401 * clock-seq-low &quot;-&quot; node
407 * node = 6hexOctet
/libcore/luni/src/main/java/java/util/concurrent/
H A DFutureTask.java405 * Tries to unlink a timed-out or interrupted wait node to avoid
414 private void removeWaiter(WaitNode node) { argument
415 if (node != null) {
416 node.thread = null;
H A DLinkedBlockingQueue.java88 * Linked list node class
97 * - null, meaning there is no successor (this is the last node)
162 * Links node at end of queue.
164 * @param node the node
166 private void enqueue(Node<E> node) { argument
169 last = last.next = node;
173 * Removes a node from head of queue.
175 * @return the node
304 Node<E> node
[all...]
H A DLinkedBlockingDeque.java77 /** Doubly-linked list node class */
80 * The item, or null if this node has been removed.
106 * Pointer to first node.
113 * Pointer to last node.
183 * Links node as first element, or returns false if full.
185 private boolean linkFirst(Node<E> node) { argument
190 node.next = f;
191 first = node;
193 last = node;
195 f.prev = node;
204 linkLast(Node<E> node) argument
[all...]
H A DPhaser.java729 QNode node = new QNode(this, phase, true, false, 0L);
730 p = root.internalAwaitAdvance(phase, node);
731 if (node.wasInterrupted)
767 QNode node = new QNode(this, phase, true, true, nanos);
768 p = root.internalAwaitAdvance(phase, node);
769 if (node.wasInterrupted)
1004 * @param node if non-null, the wait node to track interrupt and timeout;
1008 private int internalAwaitAdvance(int phase, QNode node) { argument
1011 boolean queued = false; // true when node i
[all...]
H A DConcurrentHashMap.java275 * Also, scanAndLockForPut speculatively creates a fresh node
276 * to use in put if no node is found.
334 HashEntry<K,V> node = tryLock() ? null :
356 if (node != null)
357 node.setNext(first);
359 node = new HashEntry<K,V>(hash, key, value, first);
362 rehash(node);
364 setEntryAt(tab, index, node);
379 * given node to new table
382 private void rehash(HashEntry<K,V> node) { argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
H A DDocumentBuilderImpl.java170 * @param node The node we're currently on (initially the document itself).
177 private void parse(KXmlParser parser, DocumentImpl document, Node node, argument
201 node.appendChild(document.createProcessingInstruction(target,
212 * create a node if the client wants to see comments at all.
215 node.appendChild(document.createComment(parser.getText()));
223 if (!ignoreElementContentWhitespace && document != node) {
224 appendText(document, node, token, parser.getText());
229 * That's the easiest case. We simply take it and create a new text node,
230 * or merge with an adjacent text node
[all...]
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/
H A DDocumentBuilderFactoryTest.java861 private void goThroughDocument(Node node, String indent) { argument
862 String value = node.getNodeValue();
869 switch (node.getNodeType()) {
908 // System.out.println(indent + "Unknown node " + value);
911 NodeList list = node.getChildNodes();
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldPreferencesTest.java56 pref.node(child).removeNode();
79 p.node(null);
124 Preferences child1 = pref.node("child1");
126 pref.node("child2");
127 pref.node("child3");
128 child1.node("subchild1");
150 Preferences pref = root.node("mock");
309 Preferences child = pref.node("mock");
322 Preferences pref = parent.node("mock");
325 pref.node(nul
1029 public Preferences node(String name) { method in class:OldPreferencesTest.MockPreferences
[all...]

Completed in 747 milliseconds

12