Extends the DOM2 Text
interface (which itself extends the DOM2 CharacterData
interface) with methods for guided document editing.
IDL:
interface CharacterDataAS : CharacterData {
boolean isWhitespaceOnly();
boolean canSetData(in unsigned long offset, in DOMString arg)
raises(DOMException);
boolean canAppendData(in DOMString arg) raises(DOMException);
boolean canReplaceData(in unsigned long offset,
in unsigned long count, in DOMString arg)
raises(DOMException);
boolean canInsertData(in unsigned long offset, in DOMString arg)
raises(DOMException);
boolean canDeleteData(in unsigned long offset, in DOMString arg)
raises(DOMException);
};
Java binding:
package org.w3c.dom.abstractSchemas;
public interface CharacterDataAS extends CharacterData {
public boolean isWhitespaceOnly();
public boolean canSetData(int offset, String arg)
throws DOMException;
public boolean canAppendData(String arg)
throws DOMException;
public boolean canReplaceData(int offset, int count, String arg)
throws DOMException;
public boolean canInsertData(int offset, String arg)
throws DOMException;
public boolean canDeleteData(int offset, String arg)
throws DOMException;
}