KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > dom3 > as > CharacterDataEditAS


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
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,
38                               int count);
39
40     /**
41      * Determines if data can be appended.
42      * @param arg Argument to be appended.
43      * @return <code>true</code> if no reason it can't be done;
44      * <code>false</code> if it can't be done.
45      */

46     public boolean canAppendData(String JavaDoc arg);
47
48     /**
49      * Determines if data can be replaced.
50      * @param offset Offset.
51      * @param count Replacement.
52      * @param arg Argument to be set.
53      * @return <code>true</code> if no reason it can't be done;
54      * <code>false</code> if it can't be done.
55      */

56     public boolean canReplaceData(int offset,
57                                   int count,
58                                   String JavaDoc arg);
59
60     /**
61      * Determines if data can be inserted.
62      * @param offset Offset.
63      * @param arg Argument to be set.
64      * @return <code>true</code> if no reason it can't be done;
65      * <code>false</code> if it can't be done.
66      */

67     public boolean canInsertData(int offset,
68                                  String JavaDoc arg);
69
70     /**
71      * Determines if data can be deleted.
72      * @param offset Offset.
73      * @param count Number of 16-bit units to delete.
74      * @return <code>true</code> if no reason it can't be done;
75      * <code>false</code> if it can't be done.
76      */

77     public boolean canDeleteData(int offset,
78                                  int count);
79
80 }
81
Popular Tags