|
a |
|
b/src/main/java/org/sba_research/timbus/kb/FormatMigrationOption.java |
|
|
1 |
/**
|
|
|
2 |
* Copyright (c) 2013/2014 Verein zur Foerderung der IT-Sicherheit in Oesterreich (SBA).
|
|
|
3 |
* The work has been developed in the TIMBUS Project and the above-mentioned are Members of the TIMBUS Consortium.
|
|
|
4 |
* TIMBUS is supported by the European Union under the 7th Framework Programme for research and technological
|
|
|
5 |
* development and demonstration activities (FP7/2007-2013) under grant agreement no. 269940.
|
|
|
6 |
*
|
|
|
7 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
|
|
|
8 |
* the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0
|
|
|
9 |
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
|
|
10 |
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including without
|
|
|
11 |
* limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTIBITLY, or FITNESS FOR A PARTICULAR
|
|
|
12 |
* PURPOSE. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise,
|
|
|
13 |
* unless required by applicable law or agreed to in writing, shall any Contributor be liable for damages, including
|
|
|
14 |
* any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this
|
|
|
15 |
* License or out of the use or inability to use the Work.
|
|
|
16 |
* See the License for the specific language governing permissions and limitation under the License.
|
|
|
17 |
*/
|
|
|
18 |
package org.sba_research.timbus.kb;
|
|
|
19 |
|
|
|
20 |
public class FormatMigrationOption {
|
|
|
21 |
|
|
|
22 |
private final String format;
|
|
|
23 |
private final String tool;
|
|
|
24 |
|
|
|
25 |
public FormatMigrationOption(String format, String tool) {
|
|
|
26 |
this.format = format;
|
|
|
27 |
this.tool = tool;
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
public String getFormat() {
|
|
|
31 |
return format;
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public String getTool() {
|
|
|
35 |
return tool;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
@Override
|
|
|
39 |
public boolean equals(Object o) {
|
|
|
40 |
if (this == o) return true;
|
|
|
41 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
42 |
|
|
|
43 |
FormatMigrationOption that = (FormatMigrationOption) o;
|
|
|
44 |
|
|
|
45 |
if (format != null ? !format.equals(that.format) : that.format != null) return false;
|
|
|
46 |
if (tool != null ? !tool.equals(that.tool) : that.tool != null) return false;
|
|
|
47 |
|
|
|
48 |
return true;
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
@Override
|
|
|
52 |
public int hashCode() {
|
|
|
53 |
int result = format != null ? format.hashCode() : 0;
|
|
|
54 |
result = 31 * result + (tool != null ? tool.hashCode() : 0);
|
|
|
55 |
return result;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
@Override
|
|
|
59 |
public String toString() {
|
|
|
60 |
return "FormatMigrationOption{" +
|
|
|
61 |
"format='" + format + '\'' +
|
|
|
62 |
", tool='" + tool + '\'' +
|
|
|
63 |
'}';
|
|
|
64 |
}
|
|
|
65 |
}
|