/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, 378 public void normalize(Node node) { argument 387 switch (node.getNodeType()) { 389 CDATASectionImpl cdata = (CDATASectionImpl) node; 402 node = cdata.replaceWithText(); 406 TextImpl text = (TextImpl) node; 414 CommentImpl comment = (CommentImpl) node; 426 checkTextValidity(((ProcessingInstructionImpl) node).getData()); 430 checkTextValidity(((AttrImpl) node).getValue()); 434 ElementImpl element = (ElementImpl) node; [all...] |
H A D | DocumentImpl.java | 68 * <p>Attaching user data directly to the corresponding node would cost a 69 * field per node. Under the assumption that user data is rarely needed, we 118 * Returns a shallow copy of the given node. If the node is an element node, 121 * @param node a node belonging to any document or DOM implementation. 124 * responsibility to notify user data handlers of the returned node. 125 * @return a new node whose document is this document and whose DOM 128 private NodeImpl shallowCopy(short operation, Node node) { argument 218 cloneOrImportNode(short operation, Node node, boolean deep) argument 241 adoptNode(Node node) argument 290 changeDocumentToThis(NodeImpl node) argument 312 renameNode(Node node, String namespaceURI, String qualifiedName) argument 494 getUserDataMap(NodeImpl node) argument 510 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/ojluni/src/main/java/java/util/prefs/ |
H A D | PreferenceChangeEvent.java | 31 * An event emitted by a <tt>Preferences</tt> node to indicate that 64 * @param node The Preferences node that emitted the event. 69 public PreferenceChangeEvent(Preferences node, String key, argument 71 super(node); 77 * Returns the preference node that emitted the event. 79 * @return The preference node that emitted the event.
|
H A D | Preferences.java | 47 * A node in a hierarchical collection of preference data. This class 66 * directories in a hierarchical file system. Every node in a preference 67 * tree has a <i>node name</i> (which is not necessarily unique), 71 * <p>The root node has a node name of the empty string (""). Every other 72 * node has an arbitrary node name, specified at the time it is created. The 76 * <p>The root node has an absolute path name of <tt>"/"</tt>. Children of 77 * the root node have absolute path names of <tt>"/" + </tt><i><node 899 public abstract Preferences node(String pathName); method in class:Preferences [all...] |
H A D | XmlSupport.java | 61 "<!ELEMENT root (map, node*) >" + 65 "<!ELEMENT node (map, node*) >" + 66 "<!ATTLIST node" + 87 * Export the specified preferences node and, if subTree is true, all 95 * @throws IllegalStateException if this node (or an ancestor) has been 119 e = (Element) e.appendChild(doc.createElement("node")); 128 * Put the preferences in the specified Preferences node into the 129 * specified XML element which is assumed to represent a node 132 * XML node conformin 295 getChildElements(Element node) argument [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/ojluni/src/main/java/java/util/ |
H A D | UUID.java | 51 * 0x0000FFFFFFFFFFFF node 326 * The node value associated with this UUID. 328 * <p> The 48 bit node value is constructed from the node field of this 332 * <p> The node value is only meaningful in a time-based UUID, which has 336 * @return The node value of this {@code UUID} 341 public long node() { method in class:UUID 360 * <node> 365 * node = 6*<hexOctet>
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | ForEachOps.java | 328 * of any node on the right side of such a mapping by one to indicate 329 * its dependency, and when a node on the left side of such a mapping 333 * completion map maps left children to the next node in the in-order 371 private Node<T> node; field in class:ForEachOps.ForEachOrderedTask 427 * "happens-before" completion of left-most leaf node of 436 // leaf node of right subtree 480 task.node = task.helper.wrapAndCopyInto(nb, rightSplit).build(); 488 if (node != null) { 490 node.forEach(action); 491 node [all...] |
/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/org/apache/harmony/xml/parsers/ |
H A D | DocumentBuilderImpl.java | 171 * @param node The node we're currently on (initially the document itself). 178 private void parse(KXmlParser parser, DocumentImpl document, Node node, argument 202 node.appendChild(document.createProcessingInstruction(target, 213 * create a node if the client wants to see comments at all. 216 node.appendChild(document.createComment(parser.getText())); 224 if (!ignoreElementContentWhitespace && document != node) { 225 appendText(document, node, token, parser.getText()); 230 * That's the easiest case. We simply take it and create a new text node, 231 * or merge with an adjacent text node [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | FutureTask.java | 455 * Tries to unlink a timed-out or interrupted wait node to avoid 464 private void removeWaiter(WaitNode node) { argument 465 if (node != null) { 466 node.thread = null;
|
H A D | ConcurrentLinkedQueue.java | 113 * interior node deletion (to support remove(Object)). For 155 * to be two or more steps away from the first/last node. 187 * Returns a new node holding item. Uses relaxed write because item 191 Node<E> node = new Node<E>(); 192 U.putObject(node, ITEM, item); 193 return node; 196 static <E> boolean casItem(Node<E> node, E cmp, E val) { argument 197 return U.compareAndSwapObject(node, ITEM, cmp, val); 200 static <E> void lazySetNext(Node<E> node, Node<E> val) { argument 201 U.putOrderedObject(node, NEX 204 casNext(Node<E> node, Node<E> cmp, Node<E> val) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | PolicyNodeImpl.java | 55 // every node has one parent, and zero or more children 73 * parent in the Policy Tree to this node. If null, this is the 75 * for this node, as found in the certificate. It also takes a boolean 76 * argument specifying whether this node is being created as a result 80 * node is the tree's root node 81 * @param validPolicy a String representing this node's valid policy OID 87 * node was generated by a policy mapping 125 * Alternate constructor which makes a new node with the policy data 128 * @param parent a PolicyNode that's the new parent of the node, o 132 PolicyNodeImpl(PolicyNodeImpl parent, PolicyNodeImpl node) argument [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | TestData.java | 104 public static <T> OfRef<T> ofRefNode(String name, Node<T> node) { argument 105 return new AbstractTestData.RefTestData<>(name, node, 134 public static OfInt ofNode(String name, Node.OfInt node) { argument 136 return new AbstractTestData.IntTestData<>(name, node, 165 public static OfLong ofNode(String name, Node.OfLong node) { argument 167 return new AbstractTestData.LongTestData<>(name, node, 196 public static OfDouble ofNode(String name, Node.OfDouble node) { argument 198 return new AbstractTestData.DoubleTestData<>(name, node,
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | TestData.java | 105 public static <T> OfRef<T> ofRefNode(String name, Node<T> node) { argument 106 return new AbstractTestData.RefTestData<>(name, node, 135 public static OfInt ofNode(String name, Node.OfInt node) { argument 137 return new AbstractTestData.IntTestData<>(name, node, 166 public static OfLong ofNode(String name, Node.OfLong node) { argument 168 return new AbstractTestData.LongTestData<>(name, node, 197 public static OfDouble ofNode(String name, Node.OfDouble node) { argument 199 return new AbstractTestData.DoubleTestData<>(name, node,
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | PreferencesTest.java | 78 Preferences parent = root.node("java"); 118 Preferences parent = root.node("java"); 331 public Preferences node(String name) { method in class:PreferencesTest.MockPreferences
|