1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.mobility.bus.util;
16
17
18
19
20
21 public enum BusConstants {
22 ROUTES ("routes"),
23 FAVORITES ("favorites"),
24 MAP ("map"),
25 STOPS ("stops"),
26 NEARBY_STOPS ("nearbystops"),
27 ROUTES_ENABLED ("routes.enabled"),
28 FAVORITES_ENABLED ("favorites.enabled"),
29 MAP_ENABLED ("map.enabled"),
30 NEARBY_STOPS_ENABLED ("nearbystops.enabled"),
31 TAB_ORDER ("taborder"),
32 URL_MAP ("urlMap"),
33 VIEW_NAME ("viewName");
34
35 private final String name;
36
37 private BusConstants(String s) {
38 name = s;
39 }
40
41 public boolean equalsName(String otherName){
42 return (otherName == null)? false:name.equals(otherName);
43 }
44
45 public String toString(){
46 return name;
47 }
48 }