/** * getData method * * @return java.lang.String */ public void setData(String data) throws DOMException { if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String()); } this.fSource = null; super.setData(data); }
/** */ public void setTextSource(String source) { if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String()); } this.fSource = source; notifyValueChanged(); }
/** */ public void setSource(String source) throws InvalidCharacterException { if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String()); } SourceValidator validator = new SourceValidator(this); if (validator.validateSource(source)) setTextSource(source); }
/** */ public void setValueSource(String source) { if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String()); } SourceValidator validator = new SourceValidator(this); setTextSource(validator.convertSource(source)); }
/** * appendText method * * @param text * org.w3c.dom.Text */ public void appendText(Text newText) { if (newText == null) return; if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String()); } TextImpl text = (TextImpl) newText; String newSource = text.getSource(); if (newSource == null && newSource.length() == 0) return; String source = getSource(); if (source != null) setTextSource(source + newSource); else setTextSource(newSource); }
/** * appendData method * * @param arg * java.lang.String */ public void appendData(String arg) throws DOMException { if (arg == null || arg.length() == 0) return; if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String()); } String newSource = getSource(arg); if (newSource == null) return; String source = getSource(); if (source != null) setTextSource(source + newSource); else setTextSource(newSource); }
if (newText == null) return; if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String());
if (arg == null || arg.length() == 0) return; if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String());
if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String());
if (count == 0) return; if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String());
if (!isDataEditable()) { throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, new String());