KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > outerj > daisy > docdiff > DocDiffOutput


1 /*
2  * Copyright 2004 Outerthought bvba and Schaubroeck nv
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.outerj.daisy.docdiff;
17
18 import org.outerj.daisy.repository.*;
19
20 public interface DocDiffOutput {
21     public void begin() throws Exception JavaDoc;
22
23     public void end() throws Exception JavaDoc;
24
25     public void beginPartChanges() throws Exception JavaDoc;
26
27     public void partRemoved(Part removedPart) throws Exception JavaDoc;
28
29     public void partAdded(Part addedPart) throws Exception JavaDoc;
30
31     public void partUnchanged(Part unchangedPart) throws Exception JavaDoc;
32
33     /**
34      * The parameters part1Data and part2Data are either both null or both have a value.
35      * The have a value if the parts contain textual data and the data of both parts is different.
36      */

37     public void partUpdated(Part version1Part, Part version2Part, String JavaDoc part1Data, String JavaDoc part2Data) throws Exception JavaDoc;
38
39     public void partMightBeUpdated(Part version2Part) throws Exception JavaDoc;
40
41     public void endPartChanges() throws Exception JavaDoc;
42
43     public void beginFieldChanges() throws Exception JavaDoc;
44
45     public void endFieldChanges() throws Exception JavaDoc;
46
47     public void fieldAdded(Field addedField) throws Exception JavaDoc;
48
49     public void fieldRemoved(Field removedField) throws Exception JavaDoc;
50
51     public void fieldUpdated(Field version1Field, Field version2Field) throws Exception JavaDoc;
52
53     public void beginLinkChanges() throws Exception JavaDoc;
54
55     public void linkRemoved(Link link) throws Exception JavaDoc;
56
57     public void linkAdded(Link link) throws Exception JavaDoc;
58
59     public void endLinkChanges() throws Exception JavaDoc;
60 }
61
Popular Tags