1 5 6 package org.w3c.tidy; 7 8 import org.w3c.dom.DOMException ; 9 10 27 28 public class DOMCharacterDataImpl extends DOMNodeImpl 29 implements org.w3c.dom.CharacterData { 30 31 protected DOMCharacterDataImpl(Node adaptee) 32 { 33 super(adaptee); 34 } 35 36 37 38 39 42 public String getData() throws DOMException 43 { 44 return getNodeValue(); 45 } 46 47 50 public void setData(String data) throws DOMException 51 { 52 throw new DOMExceptionImpl(DOMException.NO_MODIFICATION_ALLOWED_ERR, 54 "Not supported"); 55 } 56 57 60 public int getLength() 61 { 62 int len = 0; 63 if (adaptee.textarray != null && adaptee.start < adaptee.end) 64 len = adaptee.end - adaptee.start; 65 return len; 66 } 67 68 71 public String substringData(int offset, 72 int count) throws DOMException 73 { 74 int len; 75 String value = null; 76 if (count < 0) 77 { 78 throw new DOMExceptionImpl(DOMException.INDEX_SIZE_ERR, 79 "Invalid length"); 80 } 81 if (adaptee.textarray != null && adaptee.start < adaptee.end) 82 { 83 if (adaptee.start + offset >= adaptee.end) 84 { 85 throw new DOMExceptionImpl(DOMException.INDEX_SIZE_ERR, 86 "Invalid offset"); 87 } 88 len = count; 89 if (adaptee.start + offset + len - 1 >= adaptee.end) 90 len = adaptee.end - adaptee.start - offset; 91 92 value = Lexer.getString(adaptee.textarray, 93 adaptee.start + offset, 94 len); 95 } 96 return value; 97 } 98 99 102 public void appendData(String arg) throws DOMException 103 { 104 throw new DOMExceptionImpl(DOMException.NO_MODIFICATION_ALLOWED_ERR, 106 "Not supported"); 107 } 108 109 112 public void insertData(int offset, 113 String arg) throws DOMException 114 { 115 throw new DOMExceptionImpl(DOMException.NO_MODIFICATION_ALLOWED_ERR, 117 "Not supported"); 118 } 119 120 123 public void deleteData(int offset, 124 int count) throws DOMException 125 { 126 throw new DOMExceptionImpl(DOMException.NO_MODIFICATION_ALLOWED_ERR, 128 "Not supported"); 129 } 130 131 134 public void replaceData(int offset, 135 int count, 136 String arg) throws DOMException 137 { 138 throw new DOMExceptionImpl(DOMException.NO_MODIFICATION_ALLOWED_ERR, 140 "Not supported"); 141 } 142 143 public org.w3c.dom.Node adoptNode (org.w3c.dom.Node oNode) { 144 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl adoptNode() Not implemented"); 145 } 146 147 public short compareDocumentPosition (org.w3c.dom.Node oNode) { 148 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl compareDocumentPosition() Not implemented"); 149 } 150 151 public boolean isDefaultNamespace(String sStr1) { 152 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl isDefaultNamespace() Not implemented"); 153 } 154 155 public boolean isEqualNode(org.w3c.dom.Node oNode) { 156 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl isEqualNode() Not implemented"); 157 } 158 159 public boolean isSameNode(org.w3c.dom.Node oNode) { 160 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl isSameNode() Not implemented"); 161 } 162 163 public String lookupPrefix(String sStr1) { 164 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl lookupPreffix() Not implemented"); 165 } 166 167 public String lookupNamespaceURI(String sStr1) { 168 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl lookupNamespaceURI() Not implemented"); 169 } 170 171 public String getDocumentURI() { 172 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getDocumentURI() Not implemented"); 173 } 174 175 public void setDocumentURI(String sStr1) { 176 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl setDocumentURI() Not implemented"); 177 } 178 179 public boolean getStrictErrorChecking() { 180 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getStrictErrorChecking() Not implemented"); 181 } 182 183 public void setStrictErrorChecking(boolean bStrictCheck) { 184 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl setStrictErrorChecking() Not implemented"); 185 } 186 187 public boolean getXmlStandalone() { 188 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getXmlStandalone() Not implemented"); 189 } 190 191 public void setXmlStandalone(boolean bXmlStandalone) { 192 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl setXmlStandalone() Not implemented"); 193 } 194 195 public Object getFeature(String sStr1, String sStr2) { 196 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getFeature() Not implemented"); 197 } 198 199 public String getInputEncoding() { 200 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getInputEncoding() Not implemented"); 201 } 202 203 public String getXmlEncoding() { 204 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getXmlEncoding() Not implemented"); 205 } 206 207 public String getXmlVersion() { 208 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getXmlVersion() Not implemented"); 209 } 210 211 public void setXmlVersion(String sStr1) { 212 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl setXmlVersion() Not implemented"); 213 } 214 215 public Object getUserData(String sStr1) { 216 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getUserData() Not implemented"); 217 } 218 219 public Object setUserData(String sStr1, Object oObj2, org.w3c.dom.UserDataHandler oHndlr) { 220 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl setUserData() Not implemented"); 221 } 222 223 public org.w3c.dom.DOMConfiguration getDomConfig () { 224 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getDomConfig() Not implemented"); 225 } 226 227 public void normalizeDocument () { 228 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl normalizeDocument() Not implemented"); 229 } 230 231 public org.w3c.dom.Node renameNode (org.w3c.dom.Node oNode, String sStr1, String sStr2) { 232 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl renameNode() Not implemented"); 233 } 234 235 public String getBaseURI() { 236 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getBaseURI() Not implemented"); 237 } 238 239 public String getTextContent() { 240 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl getTextContent() Not implemented"); 241 } 242 243 public void setTextContent(String sStr1) { 244 throw new UnsupportedOperationException ("org.w3c.tidy.DOMCharacterDataImpl setTextContent() Not implemented"); 245 } 246 247 } 248 | Popular Tags |