1 18 package org.apache.batik.dom; 19 20 import org.w3c.dom.Node ; 21 22 29 30 public class GenericProcessingInstruction 31 extends AbstractProcessingInstruction { 32 35 protected String target; 36 37 40 protected boolean readonly; 41 42 45 protected GenericProcessingInstruction() { 46 } 47 48 51 public GenericProcessingInstruction(String target, 52 String data, 53 AbstractDocument owner) { 54 ownerDocument = owner; 55 setTarget(target); 56 setData(data); 57 } 58 59 62 public void setNodeName(String v) { 63 setTarget(v); 64 } 65 66 69 public boolean isReadonly() { 70 return readonly; 71 } 72 73 76 public void setReadonly(boolean v) { 77 readonly = v; 78 } 79 80 85 public String getTarget() { 86 return target; 87 } 88 89 92 public void setTarget(String v) { 93 target = v; 94 } 95 96 99 protected Node export(Node n, AbstractDocument d) { 100 GenericProcessingInstruction p; 101 p = (GenericProcessingInstruction)super.export(n, d); 102 p.setTarget(getTarget()); 103 return p; 104 } 105 106 109 protected Node deepExport(Node n, AbstractDocument d) { 110 GenericProcessingInstruction p; 111 p = (GenericProcessingInstruction)super.deepExport(n, d); 112 p.setTarget(getTarget()); 113 return p; 114 } 115 116 120 protected Node copyInto(Node n) { 121 GenericProcessingInstruction p; 122 p = (GenericProcessingInstruction)super.copyInto(n); 123 p.setTarget(getTarget()); 124 return p; 125 } 126 127 131 protected Node deepCopyInto(Node n) { 132 GenericProcessingInstruction p; 133 p = (GenericProcessingInstruction)super.deepCopyInto(n); 134 p.setTarget(getTarget()); 135 return p; 136 } 137 138 141 protected Node newNode() { 142 return new GenericProcessingInstruction(); 143 } 144 } 145 | Popular Tags |