001package jmri.jmrit.operations.trains; 002 003/** 004 * A convenient place to access operations xml element and attribute names. 005 * 006 * @author Daniel Boudreau Copyright (C) 2013 007 * 008 * 009 */ 010public class Xml { 011 012 private Xml(){ 013 //class of constants 014 } 015 016 // Common to operation xml files 017 static final String ID = "id"; // NOI18N 018 static final String NAME = "name"; // NOI18N 019 static final String COMMENT = "comment"; // NOI18N 020 021 static final String TRUE = "true"; // NOI18N 022 static final String FALSE = "false"; // NOI18N 023 024 // train.java 025 static final String TRAIN = "train"; // NOI18N 026 static final String DESCRIPTION = "description"; // NOI18N 027 static final String DEPART_HOUR = "departHour"; // NOI18N 028 static final String DEPART_MINUTE = "departMinute"; // NOI18N 029 static final String ROW_COLOR = "rowColor"; // NOI18N 030 static final String RESET_ROW_COLOR = "resetRowColor"; // NOI18N 031 static final String ROUTE = "route"; // NOI18N 032 static final String SKIPS = "skips"; // NOI18N 033 static final String LOCATION = "location"; // NOI18N 034 static final String ROUTE_ID = "routeId"; // old format // NOI18N 035 static final String SKIP = "skip"; // NOI18N 036 static final String CAR_TYPES = "carTypes"; // NOI18N 037 static final String TYPES = "types"; // NOI18N 038 static final String CAR_TYPE = "carType"; // NOI18N 039 static final String LOCO_TYPE = "locoType"; // NOI18N 040 static final String CAR_ROAD_OPERATION = "carRoadOperation"; // NOI18N should have been option not operation 041 static final String CAR_ROAD_OPTION = "carRoadOption"; // NOI18N 042 static final String CABOOSE_ROAD_OPTION = "cabooseRoadOption"; // NOI18N 043 static final String LOCO_ROAD_OPTION = "locoRoadOption"; // NOI18N 044 static final String CAR_ROADS = "carRoads"; // NOI18N 045 static final String CABOOSE_ROADS = "cabooseRoads"; // NOI18N 046 static final String LOCO_ROADS = "locoRoads"; // NOI18N 047 static final String CAR_ROAD = "carRoad"; // NOI18N 048 static final String LOCO_ROAD = "locoRoad"; // NOI18N 049 static final String CAR_LOAD_OPTION = "carLoadOption"; // NOI18N 050 static final String CAR_LOADS = "carLoads"; // NOI18N 051 static final String CAR_LOAD = "carLoad"; // NOI18N 052 static final String CAR_OWNER_OPTION = "carOwnerOption"; // NOI18N 053 static final String BUILT_START_YEAR = "builtStartYear"; // NOI18N 054 static final String BUILT_END_YEAR = "builtEndYear"; // NOI18N 055 static final String CAR_OWNERS = "carOwners"; // NOI18N 056 static final String CAR_OWNER = "carOwner"; // NOI18N 057 058 static final String NUMBER_ENGINES = "numberEngines"; // NOI18N 059 static final String LEG2_ENGINES = "leg2Engines"; // NOI18N 060 static final String LEG3_ENGINES = "leg3Engines"; // NOI18N 061 062 static final String ENGINE_ROAD = "engineRoad"; // NOI18N 063 static final String LEG2_ROAD = "leg2Road"; // NOI18N 064 static final String LEG3_ROAD = "leg3Road"; // NOI18N 065 066 static final String ENGINE_MODEL = "engineModel"; // NOI18N 067 static final String LEG2_MODEL = "leg2Model"; // NOI18N 068 static final String LEG3_MODEL = "leg3Model"; // NOI18N 069 070 static final String REQUIRES = "requires"; // NOI18N 071 static final String CABOOSE_ROAD = "cabooseRoad"; // NOI18N 072 static final String LEG2_CABOOSE_ROAD = "leg2CabooseRoad"; // NOI18N 073 static final String LEG3_CABOOSE_ROAD = "leg3CabooseRoad"; // NOI18N 074 075 static final String LEG2_OPTIONS = "leg2Options"; // NOI18N 076 static final String LEG3_OPTIONS = "leg3Options"; // NOI18N 077 078 static final String BUILD_NORMAL = "buildNormal"; // NOI18N 079 static final String TO_TERMINAL = "toTerminal"; // NOI18N 080 static final String ALLOW_LOCAL_MOVES = "allowLocalMoves"; // NOI18N 081 static final String ALLOW_THROUGH_CARS = "allowThroughCars"; // NOI18N 082 static final String ALLOW_RETURN = "allowReturn"; // NOI18N 083 static final String SERVICE_ALL = "serviceAll"; // NOI18N 084 static final String BUILD_CONSIST = "buildConsist"; // NOI18N 085 static final String SEND_CUSTOM_STAGING = "sendCustomStaging"; // NOI18N 086 087 static final String BUILT = "built"; // NOI18N 088 static final String BUILD = "build"; // NOI18N 089 static final String BUILD_FAILED = "buildFailed"; // NOI18N 090 static final String BUILD_FAILED_MESSAGE = "buildFailedMessage"; // NOI18N 091 static final String PRINTED = "printed"; // NOI18N 092 static final String MODIFIED = "modified"; // NOI18N 093 static final String SWITCH_LIST_STATUS = "switchListStatus"; // NOI18N 094 static final String LEAD_ENGINE = "leadEngine"; // NOI18N 095 static final String STATUS = "status"; // NOI18N 096 static final String STATUS_CODE = "statusCode"; // NOI18N 097 static final String OLD_STATUS_CODE = "oldStatusCode"; // NOI18N 098 static final String TERMINATION_DATE = "TerminationDate"; // NOI18N 099 static final String REQUESTED_CARS = "RequestedCars"; // NOI18N 100 101 static final String CURRENT = "current"; // NOI18N 102 static final String LEG2_START = "leg2Start"; // NOI18N 103 static final String LEG3_START = "leg3Start"; // NOI18N 104 static final String LEG2_END = "leg2End"; // NOI18N 105 static final String LEG3_END = "leg3End"; // NOI18N 106 static final String DEPARTURE_TRACK = "departureTrack"; // NOI18N 107 static final String TERMINATION_TRACK = "terminationTrack"; // NOI18N 108 109 static final String SCRIPTS = "scripts"; // NOI18N 110 static final String AFTER_BUILD = "afterBuild"; // NOI18N 111 static final String TERMINATE = "terminate"; // NOI18N 112 static final String MOVE = "move"; // NOI18N 113 114 static final String RAIL_ROAD = "railRoad"; // NOI18N 115 static final String MANIFEST_LOGO = "manifestLogo"; // NOI18N 116 static final String SHOW_TIMES = "showTimes"; // NOI18N 117 118 // TrainManager.java 119 static final String OPTIONS = "options"; // NOI18N 120 static final String TRAIN_OPTIONS = "trainOptions"; // NOI18N 121 static final String BUILD_MESSAGES = "buildMessages"; // NOI18N 122 static final String BUILD_REPORT = "buildReport"; // NOI18N 123 static final String PRINT_PREVIEW = "printPreview"; // NOI18N 124 static final String OPEN_FILE = "openFile"; // NOI18N 125 static final String RUN_FILE = "runFile"; // NOI18N 126 static final String TRAIN_ACTION = "trainAction"; // NOI18N 127 128 static final String START_UP = "startUp"; // NOI18N 129 static final String SHUT_DOWN = "shutDown"; // NOI18N 130 131 static final String CONDUCTOR_OPTIONS = "conductorOptions"; // NOI18N 132 static final String SHOW_HYPHEN_NAME = "showHyphenName"; // NOI18N 133 134 static final String ROW_COLOR_OPTIONS = "rowColorOptions"; // NOI18N 135 static final String ROW_COLOR_MANUAL = "rowColorManual"; // NOI18N 136 static final String ROW_COLOR_BUILT = "rowColorBuilt"; // NOI18N 137 static final String ROW_COLOR_BUILD_FAILED = "rowColorBuidFailed"; // NOI18N 138 static final String ROW_COLOR_TRAIN_EN_ROUTE = "rowColorTrainEnRoute"; // NOI18N 139 static final String ROW_COLOR_TERMINATED = "rowColorTerminated"; // NOI18N 140 static final String ROW_COLOR_RESET = "rowColorReset"; // NOI18N 141 142 // TrainManagerXml.java 143 static final String TRAINS = "trains"; // NOI18N 144 145 // TrainManifestText.java 146 static final String MANIFEST_TEXT_STRINGS = "manifestTextStrings"; // NOI18N 147 static final String MANIFEST_FOR_TRAIN = "manifestForTrain"; // NOI18N 148 static final String VALID = "valid"; // NOI18N 149 static final String SCHEDULED_WORK = "scheduledWork"; // NOI18N 150 static final String WORK_DEPARTURE_TIME = "workDepartureTime"; // NOI18N 151 static final String WORK_ARRIVAL_TIME = "workArrivalTime"; // NOI18N 152 static final String NO_SCHEDULED_WORK = "noScheduledWork"; // NOI18N 153 static final String NO_SCHEDULED_WORK_ROUTE_COMMENT = "noScheduledWorkRouteComment"; // NOI18N 154 static final String DEPART_TIME = "departTime"; // NOI18N 155 static final String TRAIN_DEPARTS_CARS = "trainDepartsCars"; // NOI18N 156 static final String TRAIN_DEPARTS_LOADS = "trainDepartsLoads"; // NOI18N 157 static final String TRAIN_TERMINATES = "trainTerminates"; // NOI18N 158 static final String DESTINATION = "destination"; // NOI18N 159 static final String FROM = "from"; // NOI18N 160 static final String TO = "to"; // NOI18N 161 static final String DEST = "dest"; // NOI18N 162 static final String FINAL_DEST = "finalDest"; // NOI18N 163 static final String ADD_HELPERS = "addHelpers"; // NOI18N 164 static final String REMOVE_HELPERS = "removeHelpers"; // NOI18N 165 static final String LOCO_CHANGE = "locoChange"; // NOI18N 166 static final String CABOOSE_CHANGE = "cabooseChange"; // NOI18N 167 static final String LOCO_CABOOSE_CHANGE = "locoCabooseChange"; // NOI18N 168 169 static final String TEXT = "text"; // NOI18N 170 171 // TrainSwitchListText.java 172 static final String SWITCH_LIST_TEXT_STRINGS = "switchListTextStrings"; // NOI18N 173 static final String SWICH_LIST_FOR = "switchListFor"; // NOI18N 174 static final String SCHEDULED_WORK_TRAIN = "scheduledWorkTrain"; // NOI18N 175 176 static final String DEPARTS_AT = "departsAt"; // NOI18N 177 static final String DEPARTS_EXPECTED_ARRIVAL = "departsExpectedArrival"; // NOI18N 178 static final String DEPARTED_EXPECTED = "departedExpected"; // NOI18N 179 180 static final String VISIT_NUMBER = "visitNumber"; // NOI18N 181 static final String VISIT_NUMBER_DEPARTED = "visitNumberDeparted"; // NOI18N 182 static final String VISIT_NUMBER_TERMINATES = "visitNumberTerminates"; // NOI18N 183 static final String VISIT_NUMBER_TERMINATES_DEPARTED = "visitNumberTerminatesDeparted"; // NOI18N 184 static final String VISIT_NUMBER_DONE = "visitNumberDone"; // NOI18N 185 186 static final String TRAIN_DIRECTION_CHANGE = "trainDirectionChange"; // NOI18N 187 static final String NO_CAR_PICK_UPS = "noCarPickUps"; // NOI18N 188 static final String NO_CAR_SET_OUTS = "noCarSetOuts"; // NOI18N 189 static final String TRAIN_DONE = "trainDone"; // NOI18N 190 191 static final String SWITCH_LIST_TRACK = "switchListTrack"; // NOI18N 192 static final String HOLD_CAR = "holdCar"; // NOI18N 193 194 // TrainManifestHeaderText.java 195 static final String MANIFEST_HEADER_TEXT_STRINGS = "manifestHeaderTextStrings"; // NOI18N 196 static final String ROAD = "road"; // the supported message format options // NOI18N 197 static final String NUMBER = "number"; // NOI18N 198 static final String ENGINE_NUMBER = "engineNumber"; // NOI18N 199 static final String TYPE = "type"; // NOI18N 200 static final String MODEL = "model"; // NOI18N 201 static final String HP = "hp"; // NOI18N 202 static final String LENGTH = "length"; // NOI18N 203 static final String WEIGHT = "weight"; // NOI18N 204 static final String LOAD = "load"; // NOI18N 205 static final String LOAD_TYPE = "load_type"; // NOI18N 206 static final String COLOR = "color"; // NOI18N 207 static final String TRACK = "track"; // NOI18N 208 //static final String DESTINATION = "destination"; // NOI18N 209 static final String DEST_TRACK = "dest_Track"; // NOI18N 210 //static final String FINAL_DEST = "Final_Dest"; // NOI18N 211 static final String FINAL_DEST_TRACK = "fd_Track"; // NOI18N 212 //static final String LOCATION = "location"; // NOI18N 213 static final String CONSIST = "consist"; // NOI18N 214 static final String DCC_ADDRESS = "dcc_addr"; // NOI18N 215 static final String KERNEL = "kernel"; // NOI18N 216 static final String OWNER = "owner"; // NOI18N 217 static final String DIVISION = "division"; // NOI18N 218 static final String RWE = "rwe"; // NOI18N 219 //static final String COMMENT = "Comment"; // NOI18N 220 static final String DROP_COMMENT = "setOut_msg"; // NOI18N 221 static final String PICKUP_COMMENT = "pickUp_msg"; // NOI18N 222 static final String HAZARDOUS = "hazardous"; // NOI18N 223 224}