1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package pl.edu.agh.cast.importer.wizard.util;
19
20 import pl.edu.agh.cast.importer.wizard.page.AbstractConversionRulesSelectionPage;
21
22
23
24
25
26
27
28 public class ConversionRulesPageInfo implements Comparable<ConversionRulesPageInfo> {
29
30 private String id;
31
32 private String name;
33
34 private String description;
35
36 private AbstractConversionRulesSelectionPage page;
37
38
39
40
41
42
43
44
45
46
47
48
49
50 public ConversionRulesPageInfo(String id, String name, String description, AbstractConversionRulesSelectionPage page) {
51 this.id = id;
52 this.name = name;
53 this.description = description;
54 this.page = page;
55 }
56
57 public String getId() {
58 return id;
59 }
60
61 public String getName() {
62 return name;
63 }
64
65 public String getDescription() {
66 return description;
67 }
68
69 public AbstractConversionRulesSelectionPage getPage() {
70 return page;
71 }
72
73
74
75
76
77
78 @Override
79 public int compareTo(ConversionRulesPageInfo that) {
80 if (this == that) {
81 return 0;
82 }
83 if (that == null) {
84 return 1;
85 }
86 return name.compareTo(that.getName());
87 }
88
89 }