blob: 0e4a5f2c744f7040b6c9d8ea1219ec262b380dd2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*******************************************************************************
* Copyright (c) 2010 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.framework.messaging.event.res;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* @author Donald G. Dunne
*/
public class BroadcastEventModificationType {
private final String guid;
private static Map<String, BroadcastEventModificationType> guidToEventType =
new HashMap<String, BroadcastEventModificationType>(15);
public static BroadcastEventModificationType Message = new BroadcastEventModificationType("Aylfa1sC4iArrIaXxugA");
public static BroadcastEventModificationType Shutdown = new BroadcastEventModificationType("Aylfa1swuASdF_H2OYQA");
public BroadcastEventModificationType(String guid) {
this.guid = guid;
guidToEventType.put(guid, this);
}
public static Collection<BroadcastEventModificationType> getTypes() {
return guidToEventType.values();
}
public static BroadcastEventModificationType getType(String guid) {
return guidToEventType.get(guid);
}
public String getGuid() {
return guid;
}
}
|