1 6 7 10 package javax.xml.transform.dom; 11 12 import javax.xml.transform.Source ; 13 14 import org.w3c.dom.Node ; 15 16 29 public class DOMSource implements Source { 30 31 34 private Node node; 35 36 40 private String systemID; 41 42 46 public static final String FEATURE = 47 "http://javax.xml.transform.dom.DOMSource/feature"; 48 49 58 public DOMSource() { } 59 60 69 public DOMSource(Node n) { 70 setNode(n); 71 } 72 73 80 public DOMSource(Node node, String systemID) { 81 setNode(node); 82 setSystemId(systemID); 83 } 84 85 90 public void setNode(Node node) { 91 this.node = node; 92 } 93 94 99 public Node getNode() { 100 return node; 101 } 102 103 109 public void setSystemId(String systemID) { 110 this.systemID = systemID; 111 } 112 113 119 public String getSystemId() { 120 return this.systemID; 121 } 122 } 123 | Popular Tags |