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