source: trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/eventcore/MFCEventType.java @ 581

Last change on this file since 581 was 566, checked in by sherbold, 12 years ago
  • adapted MFC plugin to new event core
  • Property svn:mime-type set to text/plain
File size: 1.0 KB
Line 
1
2package de.ugoe.cs.quest.plugin.mfc.eventcore;
3
4import de.ugoe.cs.quest.eventcore.IEventType;
5
6/**
7 * <p>
8 * TODO comment
9 * </p>
10 *
11 * @version $Revision: $ $Date: Aug 17, 2012$
12 * @author 2012, last modified by $Author: sherbold$
13 */
14public class MFCEventType implements IEventType {
15
16    /**  */
17    private static final long serialVersionUID = 1L;
18
19    private final String typeString;
20   
21    private String info = null;
22
23    public MFCEventType(String typeString) {
24        this.typeString = typeString;
25    }
26   
27    public void setInfo(String info) {
28        this.info = info;
29    }
30
31    /*
32     * (non-Javadoc)
33     *
34     * @see de.ugoe.cs.quest.eventcore.IEventType#getName()
35     */
36    @Override
37    public String getName() {
38        return "MFCEventType";
39    }
40
41    /*
42     * (non-Javadoc)
43     *
44     * @see java.lang.Object#toString()
45     */
46    @Override
47    public String toString() {
48        String str = typeString;
49        if( info!=null ) {
50            str += "." + info;
51        }
52        return str;
53    }
54
55}
Note: See TracBrowser for help on using the repository browser.