1 package com.atlassian.plugin;
2
3
4
5
6
7
8 public enum InstallationMode
9 {
10 REMOTE("remote"),
11 LOCAL("local"),
12 CONTAINER("container");
13
14 private final String key;
15
16 private InstallationMode(String key)
17 {
18 this.key = key;
19 }
20
21 public String getKey()
22 {
23 return key;
24 }
25
26 public static InstallationMode of(String name)
27 {
28 for (InstallationMode mode : values())
29 {
30 if (mode.getKey().equalsIgnoreCase(name))
31 {
32 return mode;
33 }
34 }
35 return null;
36 }
37 }