01: /*
02: * $Id: ArchiveSubjectLine.java 562 2005-10-24 19:03:40Z hengels $
03: * (c) Copyright 2004 con:cern development team.
04: *
05: * This file is part of con:cern (http://concern.org).
06: *
07: * con:cern is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU Lesser General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.concern.controller;
15:
16: /**
17: * @author hengels
18: * @version $Revision: 562 $
19: */
20: public class ArchiveSubjectLine {
21: Integer id;
22: String language;
23: String line;
24:
25: public ArchiveSubjectLine() {
26: }
27:
28: public Integer getId() {
29: return id;
30: }
31:
32: public void setId(Integer id) {
33: this .id = id;
34: }
35:
36: public ArchiveSubjectLine(String language, String line) {
37: this .language = language;
38: this .line = line;
39: }
40:
41: public String getLanguage() {
42: return language;
43: }
44:
45: public void setLanguage(String language) {
46: this .language = language;
47: }
48:
49: public String getLine() {
50: return line;
51: }
52:
53: public void setLine(String line) {
54: this .line = line;
55: }
56:
57: public boolean equals(Object o) {
58: if (this == o)
59: return true;
60: if (!(o instanceof ArchiveSubjectLine))
61: return false;
62:
63: final ArchiveSubjectLine subjectLine = (ArchiveSubjectLine) o;
64:
65: if (!language.equals(subjectLine.language))
66: return false;
67:
68: return true;
69: }
70:
71: public int hashCode() {
72: return language.hashCode();
73: }
74:
75: public String toString() {
76: return language + ": " + line;
77: }
78: }
|