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
| 34 | * |
| 35 | */ |
| 36 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected