1 /*
2 * $Header: /cvsroot/jdbforms/dbforms/src/org/dbforms/event/eventtype/EventTypeStrategy.java,v 1.6 2004/08/18 12:26:04 hkollmann Exp $
3 * $Revision: 1.6 $
4 * $Date: 2004/08/18 12:26:04 $
5 *
6 * DbForms - a Rapid Application Development Framework
7 * Copyright (C) 2001 Joachim Peer <joepeer@excite.com>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23
24 package org.dbforms.event.eventtype;
25
26
27 /***
28 * EventTypeStrategy interface. Defines the strategy to identify an event group
29 * or type value from an input event string.
30 *
31 * @author Luca Fossato
32 *
33 */
34 public interface EventTypeStrategy {
35 /***
36 * Gets the event group value.
37 *
38 * @param eventString the string that identifies an event type
39 *
40 * @return The event group value, or <code>EventType.EVENT_UNDEFINED</code>
41 */
42 int getEventGroup(String eventString);
43
44
45 /***
46 * Gets the event type value
47 *
48 * @param eventString the string that identifies an event type
49 *
50 * @return The event type value, or <code>EventType.EVENT_UNDEFINED</code>
51 */
52 String getEventType(String eventString);
53
54
55 /***
56 * Gets the EventTypeStrategy identifier.
57 *
58 * @return the EventTypeStrategy identifier
59 */
60 String getId();
61 }