01: /*
02: Copyright 2001 Nicholas Allen (nallen@freenet.co.uk)
03: This file is part of JavaCVS.
04: JavaCVS is free software; you can redistribute it and/or modify
05: it under the terms of the GNU General Public License as published by
06: the Free Software Foundation; either version 2 of the License, or
07: (at your option) any later version.
08: JavaCVS is distributed in the hope that it will be useful,
09: but WITHOUT ANY WARRANTY; without even the implied warranty of
10: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: GNU General Public License for more details.
12: You should have received a copy of the GNU General Public License
13: along with JavaCVS; if not, write to the Free Software
14: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15: */
16: package allensoft.diff;
17:
18: /**
19: * DOCUMENT ME!
20: *
21: * @author $author$
22: */
23: public final class DiffType {
24: public static final DiffType NONE = new DiffType("none");
25: public static final DiffType INSERTION = new DiffType("insert");
26: public static final DiffType DELETION = new DiffType("delete");
27: public static final DiffType CHANGE = new DiffType("change");
28: private String m_sType;
29:
30: private DiffType(String sType) {
31: m_sType = sType;
32: }
33:
34: /**
35: * DOCUMENT ME!
36: *
37: * @return DOCUMENT ME!
38: */
39: public String toString() {
40: return m_sType;
41: }
42: }
|