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.Name;
19:
20: public class DisplayNameModelInfo extends AbstractTacletContainer
21: implements Comparable {
22: private final Name name;
23:
24: public DisplayNameModelInfo(String n) {
25: name = new Name(n);
26: }
27:
28: public DisplayNameModelInfo(Name n) {
29: this (n.toString());
30: }
31:
32: public Name name() {
33: return name;
34: }
35:
36: public String toString() {
37: return name.toString();
38: }
39:
40: public int compareTo(Object other) {
41: return name.compareTo(((DisplayNameModelInfo) other).name);
42: }
43: }
|