1. /*
  2. * Copyright (c) 2001 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE.
  10. * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11. */
  12. package com.sun.org.apache.xerces.internal.dom3.as;
  13. /**
  14. * @deprecated
  15. * This interface extends the <code>NodeEditAS</code> interface with
  16. * additional methods for document editing. An object implementing this
  17. * interface must also implement NodeEditAS interface.
  18. * <p>See also the <a href='http://www.w3.org/TR/2001/WD-DOM-Level-3-ASLS-20011025'>Document Object Model (DOM) Level 3 Abstract Schemas and Load
  19. and Save Specification</a>.
  20. */
  21. public interface CharacterDataEditAS extends NodeEditAS {
  22. /**
  23. * <code>true</code> if content only whitespace; <code>false</code> for
  24. * non-whitespace.
  25. */
  26. public boolean getIsWhitespaceOnly();
  27. /**
  28. * Determines if data can be set.
  29. * @param offset Offset.
  30. * @param count Argument to be set.
  31. * @return <code>true</code> if no reason it can't be done;
  32. * <code>false</code> if it can't be done.
  33. */
  34. public boolean canSetData(int offset,
  35. int count);
  36. /**
  37. * Determines if data can be appended.
  38. * @param arg Argument to be appended.
  39. * @return <code>true</code> if no reason it can't be done;
  40. * <code>false</code> if it can't be done.
  41. */
  42. public boolean canAppendData(String arg);
  43. /**
  44. * Determines if data can be replaced.
  45. * @param offset Offset.
  46. * @param count Replacement.
  47. * @param arg Argument to be set.
  48. * @return <code>true</code> if no reason it can't be done;
  49. * <code>false</code> if it can't be done.
  50. */
  51. public boolean canReplaceData(int offset,
  52. int count,
  53. String arg);
  54. /**
  55. * Determines if data can be inserted.
  56. * @param offset Offset.
  57. * @param arg Argument to be set.
  58. * @return <code>true</code> if no reason it can't be done;
  59. * <code>false</code> if it can't be done.
  60. */
  61. public boolean canInsertData(int offset,
  62. String arg);
  63. /**
  64. * Determines if data can be deleted.
  65. * @param offset Offset.
  66. * @param count Number of 16-bit units to delete.
  67. * @return <code>true</code> if no reason it can't be done;
  68. * <code>false</code> if it can't be done.
  69. */
  70. public boolean canDeleteData(int offset,
  71. int count);
  72. }