01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //This file is part of KeY - Integrated Deductive Software Design
09: //Copyright (C) 2001-2003 Universitaet Karlsruhe, Germany
10: // and Chalmers University of Technology, Sweden
11: //
12: //The KeY system is protected by the GNU General Public License.
13: //See LICENSE.TXT for details.
14: //
15:
16: package de.uka.ilkd.key.rule.export;
17:
18: import de.uka.ilkd.key.logic.Choice;
19: import de.uka.ilkd.key.logic.Name;
20:
21: public class OptionModelInfo extends AbstractTacletContainer implements
22: Comparable {
23: private final Choice choice;
24: private CategoryModelInfo category;
25:
26: public OptionModelInfo(Choice p_choice) {
27: choice = p_choice;
28: }
29:
30: public Choice getChoice() {
31: return choice;
32: }
33:
34: public Name name() {
35: return choice.name();
36: }
37:
38: public int compareTo(Object o) {
39: return name().compareTo(((Choice) o).name());
40: }
41:
42: /**
43: * @return Returns the category.
44: */
45: public CategoryModelInfo getCategory() {
46: return category;
47: }
48:
49: /**
50: * @param category The category to set.
51: */
52: public void setCategory(CategoryModelInfo category) {
53: this.category = category;
54: }
55: }
|