001package jmri.server.json.operations; 002 003/** 004 * JSON Tokens used by JSON Operations. 005 * 006 * @author Randall Wood (C) 2016 007 */ 008public class JsonOperations { 009 010 /** 011 * {@value #CARS} 012 */ 013 public static final String CARS = "cars"; // NOI18N 014 /** 015 * {@value #LOCATIONS} 016 */ 017 public static final String LOCATIONS = "locations"; // NOI18N 018 /** 019 * {@value #TRAINS} 020 */ 021 public static final String TRAINS = "trains"; // NOI18N 022 /** 023 * {@value #CAR} 024 */ 025 public static final String CAR = "car"; // NOI18N 026 /** 027 * {@value #ENGINE} 028 */ 029 public static final String ENGINE = "engine"; // NOI18N 030 /** 031 * {@value #ENGINES} 032 */ 033 public static final String ENGINES = "engines"; // NOI18N 034 /** 035 * {@value #LOCATION} 036 */ 037 public static final String LOCATION = "location"; // NOI18N 038 /** 039 * {@value #LOCATION_COMMENT} 040 */ 041 public static final String LOCATION_COMMENT = "locationComment"; // NOI18N 042 /** 043 * {@value #LOCATION_ID} 044 */ 045 public static final String LOCATION_ID = "locationId"; // NOI18N 046 /** 047 * {@value #LOCATION_NAME} 048 */ 049 public static final String LOCATION_NAME = "locationName"; // NOI18N 050 /** 051 * {@value #LOCATION_UNKNOWN} 052 */ 053 public static final String LOCATION_UNKNOWN = "locationUnknown"; // NOI18N 054 /** 055 * {@value #TRAIN_ID} 056 */ 057 public static final String TRAIN_ID = "trainId"; // NOI18N 058 /** 059 * {@value #TRAIN_NAME} 060 */ 061 public static final String TRAIN_NAME = "trainName"; // NOI18N 062 /** 063 * {@value #TRAIN_ICON_NAME} 064 */ 065 public static final String TRAIN_ICON_NAME = "trainIconName"; // NOI18N 066 /** 067 * {@value #TRAIN} 068 */ 069 public static final String TRAIN = "train"; // NOI18N 070 /** 071 * {@value #WEIGHT} 072 * <p> 073 * Used for actual weight of rolling stock in ounces or a train's weight in tons 074 */ 075 public static final String WEIGHT = "weight"; // NOI18N 076 /** 077 * {@value #WEIGHT_TONS} 078 * <p> 079 * Used for model weight of rolling stock in tons 080 */ 081 public static final String WEIGHT_TONS = "weightTons"; // NOI18N 082 /** 083 * {@value #BUILT} 084 */ 085 public static final String BUILT = "built"; // NOI18N 086 /** 087 * {@value #LEAD_ENGINE} 088 */ 089 public static final String LEAD_ENGINE = "leadEngine"; // NOI18N 090 /** 091 * {@value #CABOOSE} 092 */ 093 public static final String CABOOSE = "caboose"; // NOI18N 094 /** 095 * {@value #FRED} 096 */ 097 public static final String FRED = "fred"; // NOI18N 098 /** 099 * {@value #PASSENGER} 100 */ 101 public static final String PASSENGER = "passenger"; // NOI18N 102 /** 103 * {@value #TERMINATE} 104 */ 105 public static final String TERMINATE = "terminate"; // NOI18N 106 /** 107 * {@value #TRACK} 108 * 109 * @since 1.1 110 */ 111 public static final String TRACK = "track"; 112 /** 113 * {@value #DATE} 114 * 115 * @since 1.1 116 */ 117 public static final String DATE = "date"; 118 /** 119 * {@value #DESTINATION} 120 */ 121 public static final String DESTINATION = "destination"; // NOI18N 122 /** 123 * {@value #DESTINATION_TRACK} 124 */ 125 public static final String DESTINATION_TRACK = "dest&track"; // NOI18N 126 /** 127 * {@value #LOCATION_TRACK} 128 */ 129 public static final String LOCATION_TRACK = "locationTrack"; // NOI18N 130 /** 131 * {@value #KERNEL} 132 */ 133 public static final String KERNEL = "kernel"; // NOI18N 134 /** 135 * {@value #LEAD} 136 */ 137 public static final String LEAD = "lead"; // NOI18N 138 /** 139 * {@value #CAR_SUB_TYPE} 140 */ 141 public static final String CAR_SUB_TYPE = "carSubType"; // NOI18N 142 /** 143 * {@value #CAR_TYPE} 144 */ 145 public static final String CAR_TYPE = "carType"; // NOI18N 146 /** 147 * {@value #CAR_TYPES} 148 */ 149 public static final String CAR_TYPES = "carTypes"; // NOI18N 150 /** 151 * {@value #ROLLING_STOCK} 152 */ 153 public static final String ROLLING_STOCK = "rollingStock"; // NOI18N 154 /** 155 * {@value #OUT_OF_SERVICE} 156 */ 157 public static final String OUT_OF_SERVICE = "outOfService"; // NOI18N 158 /** 159 * {@value #NULL} 160 */ 161 public static final String NULL = "null"; // NOI18N 162 163 /** 164 * Prevent instantiation, since this class only contains static values 165 */ 166 private JsonOperations() { 167 throw new UnsupportedOperationException("There is no valid instance of this class"); 168 } 169}