/libcore/luni/src/test/java/libcore/xml/ |
H A D | SimpleBuilderTest.java | 46 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 D | NodeTest.java | 55 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 D | XsltXPathConformanceTestSuite.java | 428 * 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 D | DOMResult.java | 28 * <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 D | DOMSource.java | 43 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 D | LeafNodeImpl.java | 65 boolean isParentOf(Node node) { argument
|
H A D | NodeListImpl.java | 46 void add(NodeImpl node) { argument 47 children.add(node);
|
H A D | InnerNodeImpl.java | 58 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 D | DOMConfigurationImpl.java | 272 * 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 D | DocumentImpl.java | 69 * <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 D | NodeImpl.java | 37 * 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 D | PreferenceChangeEvent.java | 43 private final Preferences node; field in class:PreferenceChangeEvent 63 node = p; 94 return node;
|
H A D | Preferences.java | 26 * 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> + "/" + <node's name>. 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 134 * Gets the absolute path string of this preference node 503 public abstract Preferences node(String path); method in class:Preferences [all...] |
H A D | XMLParser.java | 65 + " <!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 D | AbstractPreferences.java | 86 /** 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 D | XmlParseBenchmark.java | 114 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 D | UUID.java | 54 private transient long node; field in class:UUID 111 // setup node field 112 node = (leastSigBits & 0x0000FFFFFFFFFFFFL); 293 * The node value of the version 1, variant 2 UUID as per <a 300 public long node() { method in class:UUID 304 return node; 390 * clock-seq-low "-" node 396 * node = 6hexOctet
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
H A D | DocumentBuilderFactoryTest.java | 861 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/main/java/java/util/concurrent/ |
H A D | FutureTask.java | 426 * Tries to unlink a timed-out or interrupted wait node to avoid 435 private void removeWaiter(WaitNode node) { argument 436 if (node != null) { 437 node.thread = null;
|
H A D | LinkedBlockingQueue.java | 88 * 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 D | LinkedBlockingDeque.java | 77 /** 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 D | Phaser.java | 726 QNode node = new QNode(this, phase, true, false, 0L); 727 p = root.internalAwaitAdvance(phase, node); 728 if (node.wasInterrupted) 764 QNode node = new QNode(this, phase, true, true, nanos); 765 p = root.internalAwaitAdvance(phase, node); 766 if (node.wasInterrupted) 1001 * @param node if non-null, the wait node to track interrupt and timeout; 1005 private int internalAwaitAdvance(int phase, QNode node) { argument 1008 boolean queued = false; // true when node i [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
H A D | DocumentBuilderImpl.java | 170 * @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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | PreferencesTest.java | 76 Preferences parent = root.node("java"); 116 Preferences parent = root.node("java"); 329 public Preferences node(String name) { method in class:PreferencesTest.MockPreferences
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | OldPreferencesTest.java | 65 pref.node(child).removeNode(); 93 p.node(null); 138 Preferences child1 = pref.node("child1"); 140 pref.node("child2"); 141 pref.node("child3"); 142 child1.node("subchild1"); 164 Preferences pref = root.node("mock"); 323 Preferences child = pref.node("mock"); 336 Preferences pref = parent.node("mock"); 339 pref.node(nul 1043 public Preferences node(String name) { method in class:OldPreferencesTest.MockPreferences [all...] |