1 18 package org.apache.batik.dom; 19 20 import org.w3c.dom.Node ; 21 import org.w3c.dom.Notation ; 22 23 29 public abstract class AbstractNotation 30 extends AbstractNode 31 implements Notation { 32 35 protected String nodeName; 36 37 40 protected String publicId; 41 42 45 protected String systemId; 46 47 51 public short getNodeType() { 52 return NOTATION_NODE; 53 } 54 55 58 public void setNodeName(String v) { 59 nodeName = v; 60 } 61 62 65 public String getNodeName() { 66 return nodeName; 67 } 68 69 73 public String getPublicId() { 74 return publicId; 75 } 76 77 80 public void setPublicId(String id) { 81 publicId = id; 82 } 83 84 88 public String getSystemId() { 89 return systemId; 90 } 91 92 95 public void setSystemId(String id) { 96 systemId = id; 97 } 98 99 102 protected Node export(Node n, AbstractDocument d) { 103 super.export(n, d); 104 AbstractNotation an = (AbstractNotation)n; 105 an.nodeName = nodeName; 106 an.publicId = publicId; 107 an.systemId = systemId; 108 return n; 109 } 110 111 114 protected Node deepExport(Node n, AbstractDocument d) { 115 super.deepExport(n, d); 116 AbstractNotation an = (AbstractNotation)n; 117 an.nodeName = nodeName; 118 an.publicId = publicId; 119 an.systemId = systemId; 120 return n; 121 } 122 123 127 protected Node copyInto(Node n) { 128 super.copyInto(n); 129 AbstractNotation an = (AbstractNotation)n; 130 an.nodeName = nodeName; 131 an.publicId = publicId; 132 an.systemId = systemId; 133 return n; 134 } 135 136 140 protected Node deepCopyInto(Node n) { 141 super.deepCopyInto(n); 142 AbstractNotation an = (AbstractNotation)n; 143 an.nodeName = nodeName; 144 an.publicId = publicId; 145 an.systemId = systemId; 146 return n; 147 } 148 } 149 | Popular Tags |