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