MCPcopy Create free account
hub / github.com/attoparser/attoparser / Document

Class Document

src/main/java/org/attoparser/dom/Document.java:36–73  ·  view source on GitHub ↗

Root object for a DOM object tree produced by the org.attoparser.dom.DOMBuilderMarkupHandler handler or the org.attoparser.dom.IDOMMarkupParser parser implementations. @author Daniel Fernández @since 2.0.0

Source from the content-addressed store, hash-verified

34 *
35 */
36public class Document
37 extends AbstractNestableNode
38 implements Serializable {
39
40 private static final long serialVersionUID = 1L;
41
42
43 private String documentName = null;
44
45
46 public Document(final String documentName) {
47 super();
48 this.documentName = documentName;
49 }
50
51
52 public String getDocumentName() {
53 return this.documentName;
54 }
55
56
57 public void setDocumentName(final String documentName) {
58 this.documentName = documentName;
59 }
60
61
62
63
64 public Document cloneNode(INestableNode parent) {
65 final Document document = new Document(this.documentName);
66 document.setLine(getLine());
67 document.setCol(getCol());
68 document.setParent(parent);
69 return document;
70 }
71
72
73}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected