1 18 package org.apache.batik.dom; 19 20 import org.w3c.dom.Node ; 21 22 28 public class GenericElementNS extends AbstractElementNS { 29 32 protected String nodeName; 33 34 37 protected boolean readonly; 38 39 42 protected GenericElementNS() { 43 } 44 45 60 public GenericElementNS(String nsURI, String name, 61 AbstractDocument owner) { 62 super(nsURI, name, owner); 63 nodeName = name; 64 } 65 66 69 public void setNodeName(String v) { 70 nodeName = v; 71 } 72 73 77 public String getNodeName() { 78 return nodeName; 79 } 80 81 83 86 public boolean isReadonly() { 87 return readonly; 88 } 89 90 93 public void setReadonly(boolean v) { 94 readonly = v; 95 } 96 97 100 protected Node export(Node n, AbstractDocument d) { 101 GenericElementNS ge = (GenericElementNS)super.export(n, d); 102 ge.nodeName = nodeName; 103 return n; 104 } 105 106 109 protected Node deepExport(Node n, AbstractDocument d) { 110 GenericElementNS ge = (GenericElementNS)super.deepExport(n, d); 111 ge.nodeName = nodeName; 112 return n; 113 } 114 115 119 protected Node copyInto(Node n) { 120 GenericElementNS ge = (GenericElementNS)super.copyInto(n); 121 ge.nodeName = nodeName; 122 return n; 123 } 124 125 129 protected Node deepCopyInto(Node n) { 130 GenericElementNS ge = (GenericElementNS)super.deepCopyInto(n); 131 ge.nodeName = nodeName; 132 return n; 133 } 134 135 138 protected Node newNode() { 139 return new GenericElementNS(); 140 } 141 } 142 | Popular Tags |