/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/ |
H A D | DocumentFragmentImpl.java | 35 DocumentFragmentImpl(DocumentImpl document) { argument 36 super(document); 41 return "#document-fragment";
|
H A D | CDATASectionImpl.java | 34 public CDATASectionImpl(DocumentImpl document, String data) { argument 35 super(document, data); 59 parent.insertBefore(new CDATASectionImpl(document, parts[0] + "]]"), this); 61 parent.insertBefore(new CDATASectionImpl(document, ">" + parts[p] + "]]"), this); 82 TextImpl replacement = new TextImpl(document, getData());
|
H A D | CommentImpl.java | 34 CommentImpl(DocumentImpl document, String data) { argument 35 super(document, data);
|
H A D | EntityReferenceImpl.java | 36 EntityReferenceImpl(DocumentImpl document, String name) { argument 37 super(document);
|
H A D | LeafNodeImpl.java | 41 LeafNodeImpl(DocumentImpl document) { argument 42 super(document);
|
H A D | NotationImpl.java | 40 NotationImpl(DocumentImpl document, String notationName, String publicID, argument 42 super(document);
|
H A D | InnerNodeImpl.java | 46 protected InnerNodeImpl(DocumentImpl document) { argument 47 super(document); 87 if (refChildImpl.document != document) { 115 if (document != null && newChildImpl.document != null && newChildImpl.document != document) { 176 if (oldChildImpl.document != document) { [all...] |
H A D | EntityImpl.java | 40 EntityImpl(DocumentImpl document, String notationName, String publicID, argument 42 super(document);
|
H A D | NamedNodeMapImpl.java | 122 // All nodes in the map must belong to the same document. 124 Document document = list.get(0).document; 126 if (document != null && arg.getOwnerDocument() != document) { 152 // All nodes in the map must belong to the same document. 154 Document document = list.get(0).document; 156 if (document != null && arg.getOwnerDocument() != document) { [all...] |
H A D | ProcessingInstructionImpl.java | 40 ProcessingInstructionImpl(DocumentImpl document, String target, String data) { argument 41 super(document);
|
H A D | AttrImpl.java | 48 AttrImpl(DocumentImpl document, String namespaceURI, String qualifiedName) { argument 49 super(document); 55 AttrImpl(DocumentImpl document, String name) { argument 56 super(document);
|
H A D | CharacterDataImpl.java | 37 CharacterDataImpl(DocumentImpl document, String data) { argument 38 super(document);
|
H A D | DocumentTypeImpl.java | 42 public DocumentTypeImpl(DocumentImpl document, String qualifiedName, argument 44 super(document);
|
H A D | TextImpl.java | 35 public TextImpl(DocumentImpl document, String data) { argument 36 super(document, data); 50 Text newText = document.createTextNode( 68 // TODO: wire this up when we support document validation 151 * not alter the document's semantics.
|
H A D | ElementImpl.java | 49 ElementImpl(DocumentImpl document, String namespaceURI, String qualifiedName) { argument 50 super(document); 54 ElementImpl(DocumentImpl document, String name) { argument 55 super(document); 144 * This implementation walks the entire document looking for an element 292 attr = document.createAttribute(name); 304 attr = document.createAttributeNS(namespaceURI, qualifiedName); 314 if (newAttrImpl.document != this.document) { 339 if (newAttrImpl.document ! [all...] |
H A D | NodeImpl.java | 66 DocumentImpl document; field in class:NodeImpl 68 NodeImpl(DocumentImpl document) { argument 69 this.document = document; 77 return document.cloneOrImportNode(UserDataHandler.NODE_CLONED, this, deep); 119 return document == this ? null : document; 428 appendChild(document.createTextNode(textContent)); 709 Map<String, UserData> map = document.getUserDataMap(this); 720 Map<String, UserData> map = document [all...] |
H A D | DocumentImpl.java | 67 * A lazily initialized map of user data values for this document's own 68 * nodes. The map is weak because the document may live longer than its 73 * attach user data to the document to save those fields. Xerces also takes 84 this.document = this; 125 * @param node a node belonging to any document or DOM implementation. 129 * @return a new node whose document is this document and whose DOM 179 * original document. Imports copy entities by reference, 181 * document. 199 * Returns a copy of the given node or subtree with this document a [all...] |
/dalvik/libcore/xml/src/test/java/tests/xml/ |
H A D | NormalizeTest.java | 57 private Document document; field in class:NormalizeTest 66 document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); 67 domConfiguration = document.getDomConfig(); 345 document.getDocumentElement().normalize(); 346 assertEquals(xml, domToString(document)); 350 document.getDocumentElement().normalize(); 351 assertEquals(xml, domToString(document)); 358 document.normalizeDocument(); 359 assertEquals(xml, domToString(document)); 363 document 593 domToString(Document document) argument [all...] |
H A D | NodeTest.java | 44 Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(bis); 45 Node root = document.getDocumentElement(); 52 Document document = builder.parse(file); 54 assertFileUriEquals(file, document.getBaseURI()); 56 Element documentElement = document.getDocumentElement();
|
H A D | DomTest.java | 99 private Document document; field in class:DomTest 134 document = builder.parse(new InputSource(new StringReader(xml))); 137 doctype = document.getDoctype(); 145 // document nodes 146 menu = document.getDocumentElement(); 178 allNodes.addAll(Arrays.asList(document, doctype, menu, item, itemXmlns, 211 assertEquals(null, document.lookupNamespaceURI("a")); 236 assertEquals(null, document.lookupNamespaceURI(null)); 274 assertEquals(null, document.lookupPrefix("http://addons")); 318 assertEquals(null, document 1355 domToString(Document document) argument 1379 domToStringStripElementWhitespace(Document document) argument [all...] |
H A D | SimpleBuilderTest.java | 74 Document document = builder.parse(getClass().getResourceAsStream( 77 Element root = document.getDocumentElement(); 106 list = document.getChildNodes(); 132 Document document = builder.parse(getClass().getResourceAsStream( 135 Element root = document.getDocumentElement();
|
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/parsers/ |
H A D | DocumentBuilderImpl.java | 106 DocumentImpl document = new DocumentImpl( 108 document.setDocumentURI(systemId); 132 "Unexpected end of document", null); 135 parse(parser, document, document, XmlPullParser.END_DOCUMENT); 163 return document; 167 * Implements the whole parsing of the XML document. The XML pull parser is 175 * @param document The document we're building. 176 * @param node The node we're currently on (initially the document itsel 183 parse(XmlPullParser parser, DocumentImpl document, Node node, int endToken) argument 377 appendText(DocumentImpl document, Node parent, int token, String text) argument [all...] |
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/ |
H A D | ExpatPullParser.java | 51 private Document document; field in class:ExpatPullParser 126 this.document = new CharDocument(in, processNamespaces); 131 this.document = new ByteDocument(in, encodingName, processNamespaces); 135 return this.document.getEncoding(); 149 return document.currentEvent.namespaceStack.countAt(depth); 153 String prefix = document.currentEvent.namespaceStack.prefixAt(pos); 160 return document.currentEvent.namespaceStack.uriAt(pos); 170 return document.currentEvent.namespaceStack.uriFor(prefix); 174 return this.document.getDepth(); 223 final StringBuilder builder = this.document [all...] |
/dalvik/libcore/xml/src/test/java/tests/api/javax/xml/parsers/ |
H A D | DocumentBuilderFactoryTest.java | 479 Document document = parser.parse(getClass().getResourceAsStream( 484 goThroughDocument((Node) document, ""); 507 Document document = parser.parse(getClass().getResourceAsStream( 512 goThroughDocument((Node) document, ""); 548 Document document = parser.parse(getClass().getResourceAsStream( 553 assertNotNull(document); 571 Document document = parser.parse(getClass().getResourceAsStream( 576 assertNotNull(document); 666 Document document = parser.parse(getClass().getResourceAsStream( 669 goThroughDocument((Node) document, ""); [all...] |
/dalvik/libcore/xml/src/test/java/org/apache/harmony/xml/ |
H A D | JaxenXPathTestSuite.java | 81 * The tests.xml document has this structure: 84 * <document url="..."> 88 * </document> 89 * <document url="..."> 91 * </document> 100 for (Element document : elementsOf(tests.getElementsByTagName("document"))) { 101 String url = document.getAttribute("url"); 103 for (final Element context : elementsOf(document.getElementsByTagName("context"))) {
|