1 /*
2 * Copyright 2011-2013 The Kuali Foundation Licensed under the
3 * Educational Community License, Version 2.0 (the "License"); you may
4 * not use this file except in compliance with the License. You may
5 * obtain a copy of the License at
6 *
7 * http://www.osedu.org/licenses/ECL-2.0
8 *
9 * Unless required by applicable law or agreed to in writing,
10 * software distributed under the License is distributed on an "AS IS"
11 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12 * or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 package org.kuali.mobility.bus.util;
16
17 /**
18 *
19 * @author Joe Swanson <joseswan@umich.edu>
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 }