001package jmri.jmrit.operations.setup;
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    protected static final String YES = "yes"; // NOI18N
024    protected static final String NO = "no"; // NOI18N
025
026    // Control.java
027    protected static final String CONTROL = "control"; // NOI18N
028    protected static final String BACKWARD_COMPATIBILITY = "backwardCompatibility"; // NOI18N
029    protected static final String SAVE_USING_PRE_2013_FORMAT = "saveUsingPre_2013_Format"; // NOI18N
030    protected static final String LENGTH = "length"; // NOI18N
031    protected static final String MAXIMUM_STRING_LENGTHS = "maximumStringLengths"; // NOI18N
032    protected static final String MAX_LEN_STRING_ATTRIBUTE = "max_len_string_attibute"; // NOI18N
033    protected static final String MAX_LEN_STRING_ROAD_NUMBER = "max_len_string_road_number"; // NOI18N
034    protected static final String MAX_LEN_STRING_PRINT_ROAD_NUMBER = "max_len_string_print_road_number"; // NOI18N
035    protected static final String MAX_LEN_STRING_LOCATION_NAME = "max_len_string_location_name"; // NOI18N
036    protected static final String MAX_LEN_STRING_TRACK_NAME = "max_len_string_track_name"; // NOI18N
037    protected static final String MAX_LEN_STRING_TRACK_LENGTH_NAME = "max_len_string_track_length_name"; // NOI18N
038    protected static final String MAX_LEN_STRING_LENGTH_NAME = "max_len_string_length_name"; // NOI18N
039    protected static final String MAX_LEN_STRING_WEIGHT_NAME = "max_len_string_weight_name"; // NOI18N
040    protected static final String MAX_LEN_STRING_BUILT_NAME = "max_len_string_built_name"; // NOI18N
041    protected static final String MAX_LEN_STRING_TRAIN_NAME = "max_len_string_train_name"; // NOI18N
042    protected static final String MAX_LEN_STRING_ROUTE_NAME = "max_len_string_route_name"; // NOI18N
043    protected static final String MAX_LEN_STRING_AUTOMATION_NAME = "max_len_string_automation_name"; // NOI18N
044    protected static final String REPORTS = "reports"; // NOI18N
045    
046    protected static final String ACTIONS = "actions"; // NOI18N
047    protected static final String EXCEL_WAIT_TIME = "excelWaitTime"; // NOI18N
048    
049    protected static final String PRINT_OPTIONS = "printOptions"; // NOI18N
050    protected static final String DISABLE_PRINT_IF_CUSTOM = "disablePrintIfCustom"; // NOI18N
051
052    protected static final String SPEED_HPT = "speedHpt";
053    protected static final String MPH = "MPH";
054    
055    protected static final String SHOW_CLONES = "showClones";
056
057    // Setup.java
058    protected static final String OPERATIONS = "operations"; // NOI18N
059    protected static final String RAIL_ROAD = "railRoad"; // NOI18N
060    protected static final String USE_JMRI_RAILROAD_NAME = "useJmriRailroadName"; // NOI18N
061    protected static final String SETTINGS = "settings"; // NOI18N
062    protected static final String MAIN_MENU = "mainMenu"; // NOI18N
063    protected static final String CLOSE_ON_SAVE = "closeOnSave"; // NOI18N 
064    protected static final String AUTO_SAVE = "autoSave"; // NOI18N
065    protected static final String AUTO_BACKUP = "autoBackup"; // NOI18N
066    protected static final String TRAIN_DIRECTION = "trainDirection"; // NOI18N
067    protected static final String TRAIN_LENGTH = "trainLength"; // NOI18N
068    protected static final String MAX_ENGINES = "maxEngines"; // NOI18N
069    protected static final String HPT = "hpt"; // NOI18N
070    protected static final String SCALE = "scale"; // NOI18N
071    protected static final String CAR_TYPES = "carTypes"; // NOI18N
072    protected static final String SWITCH_TIME = "switchTime"; // NOI18N 
073    protected static final String TRAVEL_TIME = "travelTime"; // NOI18N
074    protected static final String SHOW_VALUE = "showValue"; // NOI18N
075    protected static final String VALUE_LABEL = "valueLabel"; // NOI18N
076    protected static final String SHOW_RFID = "showRfid"; // NOI18N
077    protected static final String RFID_LABEL = "rfidLabel"; // NOI18N
078    protected static final String SETUP = "setup"; // NOI18N
079
080    protected static final String ROUTER = "router"; // NOI18N
081    protected static final String CAR_ROUTING_ENABLED = "carRoutingEnabled"; // NOI18N
082    protected static final String CAR_ROUTING_VIA_YARDS = "carRoutingViaYards"; // NOI18N
083    protected static final String CAR_ROUTING_VIA_STAGING = "carRoutingViaStaging"; // NOI18N
084    protected static final String FORWARD_TO_YARD = "forwardToYard"; // NOI18N
085    protected static final String ONLY_ACTIVE_TRAINS = "onlyActiveTrains"; // NOI18N
086    protected static final String CHECK_CAR_DESTINATION = "checkCarDestination"; // NOI18N
087
088    protected static final String LOGGER = "logger"; // NOI18N
089    protected static final String CAR_LOGGER = "carLogger"; // NOI18N
090    protected static final String ENGINE_LOGGER = "engineLogger"; // NOI18N
091    protected static final String TRAIN_LOGGER = "trainLogger"; // NOI18N
092    
093    protected static final String MANIFEST_FILE_OPTIONS = "manifestFileOptions"; // NOI18N
094    protected static final String MANIFEST_SAVE = "manifestSave"; // NOI18N
095
096    protected static final String PRINT_LOC_COMMENTS = "printLocComments"; // NOI18N
097    protected static final String PRINT_ROUTE_COMMENTS = "printRouteComments"; // NOI18N
098    protected static final String PRINT_LOADS_EMPTIES = "printLoadsEmpties"; // NOI18N
099    protected static final String PRINT_TRAIN_SCHEDULE = "printTimetable"; // NOI18N
100    protected static final String USE12HR_FORMAT = "use12hrFormat"; // NOI18N
101    protected static final String PRINT_VALID = "printValid"; // NOI18N
102    protected static final String SORT_BY_TRACK = "sortByTrack"; // NOI18N
103    protected static final String PRINT_PAGE_HEADER = "printPageHeader"; // NOI18N
104    protected static final String PRINT_HEADERS = "printHeaders"; // NOI18N
105    protected static final String PRINT_NO_PAGE_BREAKS = "printNoPageBreaks"; // NOI18N
106    protected static final String PRINT_CABOOSE_LOAD = "printCabooseLoad"; // NOI18N
107    protected static final String PRINT_PASSENGER_LOAD = "printPassengerLoad"; // NOI18N
108    protected static final String GROUP_MOVES = "groupCarMoves"; // NOI18N
109    protected static final String PRINT_LOCO_LAST = "printLocoLast"; // NOI18N
110    
111    protected static final String LENGTH_UNIT = "lengthUnit"; // NOI18N
112    protected static final String YEAR_MODELED = "yearModeled"; // NOI18N
113
114    protected static final String PICKUP_ENG_FORMAT = "pickupEngFormat"; // NOI18N
115    protected static final String DROP_ENG_FORMAT = "dropEngFormat"; // NOI18N
116    protected static final String PICKUP_CAR_FORMAT = "pickupCarFormat"; // NOI18N
117    protected static final String DROP_CAR_FORMAT = "dropCarFormat"; // NOI18N
118    protected static final String LOCAL_FORMAT = "localFormat"; // NOI18N
119    protected static final String MISSING_CAR_FORMAT = "missingCarFormat"; // NOI18N
120
121    protected static final String SWITCH_LIST_PICKUP_CAR_FORMAT = "switchListPickupCarFormat"; // NOI18N
122    protected static final String SWITCH_LIST_DROP_CAR_FORMAT = "switchListDropCarFormat"; // NOI18N
123    protected static final String SWITCH_LIST_LOCAL_FORMAT = "switchListLocalFormat"; // NOI18N
124
125    protected static final String SAME_AS_MANIFEST = "sameAsManifest"; // NOI18N
126    protected static final String REAL_TIME = "realTime"; // NOI18N
127    protected static final String ALL_TRAINS = "allTrains"; // NOI18N
128    protected static final String PAGE_MODE = "pageMode"; // NOI18N, backwards compatible for versions before 3.11
129    protected static final String PAGE_FORMAT = "pageFormat"; // NOI18N
130    protected static final String PAGE_NORMAL = "pageNormal"; // NOI18N
131    protected static final String PAGE_PER_TRAIN = "pagePerTrain"; // NOI18N
132    protected static final String PAGE_PER_VISIT = "pagePerVisit"; // NOI18N
133    protected static final String PRINT_ROUTE_LOCATION = "printRouteLocation"; // NOI18N
134    protected static final String TRACK_SUMMARY = "trackSummary"; // NOI18N
135
136    protected static final String PREFIX = "prefix"; // NOI18N
137    protected static final String SETTING = "setting"; // NOI18N
138
139    protected static final String PANEL = "panel"; // NOI18N
140    protected static final String TRAIN_ICONXY = "trainIconXY"; // NOI18N
141    protected static final String TRAIN_ICON_APPEND = "trainIconAppend"; // NOI18N
142
143    protected static final String FONT_NAME = "fontName"; // NOI18N
144    protected static final String FONT_SIZE = "fontSize"; // NOI18N
145    protected static final String SIZE = "size"; // NOI18N
146    protected static final String PRINT_DUPLEX = "printDuplex"; // NOI18N
147
148    protected static final String PAGE_ORIENTATION = "pageOrientation"; // NOI18N
149    protected static final String MANIFEST = "manifest"; // NOI18N
150    protected static final String SWITCH_LIST = "switchList"; // NOI18N
151
152    protected static final String MANIFEST_COLORS = "manifestColors"; // NOI18N
153    protected static final String DROP_ENGINE_COLOR = "dropEngineColor"; // NOI18N
154    protected static final String PICKUP_ENGINE_COLOR = "pickupEngineColor"; // NOI18N
155    protected static final String DROP_COLOR = "dropColor"; // NOI18N
156    protected static final String PICKUP_COLOR = "pickupColor"; // NOI18N
157    protected static final String LOCAL_COLOR = "localColor"; // NOI18N
158
159    protected static final String TAB = "tab"; // NOI18N
160    protected static final String TAB2_LENGTH = "tab2Length"; // NOI18N
161    protected static final String TAB3_LENGTH = "tab3Length"; // NOI18N
162    protected static final String ENABLED = "enabled"; // NOI18N
163
164    protected static final String COLUMN_FORMAT = "columnFormat"; // NOI18N
165    protected static final String TWO_COLUMNS = "twoColumns"; // NOI18N
166    protected static final String MANIFEST_FORMAT = "manifestFormat";  // NOI18N
167    protected static final String VALUE = "value"; // NOI18N
168    protected static final String STANDARD = "0"; // NOI18N
169    protected static final String TWO_COLUMN = "1"; // NOI18N
170    protected static final String TWO_COLUMN_TRACK = "2"; // NOI18N
171
172    protected static final String HEADER_LINES = "headerLines"; // NOI18N
173    protected static final String PRINT_HEADER_LINE1 = "printHeaderLine1"; // NOI18N
174    protected static final String PRINT_HEADER_LINE2 = "printHeaderLine2"; // NOI18N
175    protected static final String PRINT_HEADER_LINE3 = "printHeaderLine3"; // NOI18N
176
177    protected static final String TRUNCATE = "truncate"; // NOI18N
178    protected static final String USE_DEPARTURE_TIME = "useDepartureTime"; // NOI18N
179    protected static final String USE_EDITOR = "useEditor"; // NOI18N
180    protected static final String HAZARDOUS_MSG = "hazardousMsg"; // NOI18N
181
182    protected static final String MANIFEST_LOGO = "manifestLogo"; // NOI18N
183
184    protected static final String BUILD_OPTIONS = "buildOptions"; // NOI18N
185    protected static final String AGGRESSIVE = "aggressive"; // NOI18N
186    protected static final String NUMBER_PASSES = "numberPasses";  // NOI18N
187    protected static final String ON_TIME = "onTime"; // NOI18N
188    protected static final String DWELL_TIME = "dwellTime";  // NOI18N
189
190    protected static final String ALLOW_LOCAL_INTERCHANGE = "allowLocalInterchange"; // NOI18N
191    protected static final String ALLOW_LOCAL_SPUR = "allowLocalSpur"; // NOI18N
192    protected static final String ALLOW_LOCAL_YARD = "allowLocalYard"; // NOI18N
193    // next for backward compatibility
194    protected static final String ALLOW_LOCAL_SIDING = "allowLocalSiding"; // NOI18N
195
196    protected static final String STAGING_RESTRICTION_ENABLED = "stagingRestrictionEnabled"; // NOI18N
197    protected static final String STAGING_TRACK_AVAIL = "stagingTrackAvail"; // NOI18N
198    protected static final String ALLOW_RETURN_STAGING = "allowReturnStaging"; // NOI18N
199    protected static final String PROMPT_STAGING_ENABLED = "promptStagingEnabled"; // NOI18N
200    protected static final String PROMPT_TO_STAGING_ENABLED = "promptToStagingEnabled"; // NOI18N
201    protected static final String STAGING_TRY_NORMAL = "stagingTryNormal"; // NOI18N
202
203    protected static final String GENERATE_CSV_MANIFEST = "generateCsvManifest"; // NOI18N
204    protected static final String GENERATE_CSV_SWITCH_LIST = "generateCsvSwitchList"; // NOI18N
205
206    protected static final String BUILD_REPORT = "buildReport"; // NOI18N
207    protected static final String LEVEL = "level"; // NOI18N
208    protected static final String INDENT = "indent"; // NOI18N
209    protected static final String ROUTER_LEVEL = "routerLevel"; // NOI18N
210    protected static final String ALWAYS_PREVIEW = "alwaysPreview"; // NOI18N
211
212    protected static final String OWNER = "owner"; // NOI18N
213
214    protected static final String ICON_COLOR = "iconColor"; // NOI18N
215    protected static final String NORTH = "north"; // NOI18N
216    protected static final String SOUTH = "south"; // NOI18N
217    protected static final String EAST = "east"; // NOI18N
218    protected static final String WEST = "west"; // NOI18N
219    protected static final String LOCAL = "local"; // NOI18N
220    protected static final String TERMINATE = "terminate"; // NOI18N
221
222    protected static final String COMMENTS = "comments"; // NOI18N
223    protected static final String MISPLACED_CARS = "misplacedCars"; // NOI18N
224    
225    protected static final String DISPLAY = "display"; // NOI18N
226    protected static final String SHOW_TRACK_MOVES = "showTrackMoves"; // NOI18N
227
228    protected static final String VSD = "vsd"; // NOI18N
229    protected static final String ENABLE_PHYSICAL_LOCATIONS = "enablePhysicalLocations"; // NOI18N
230
231    protected static final String CATS = "CATS"; // NOI18N
232    protected static final String EXACT_LOCATION_NAME = "exactLocationName"; // NOI18N
233    
234    protected static final String DAY_NAME_MAP = "dayNameMapping"; // NOI18N
235    protected static final String MAP = "map"; // NOI18N
236    protected static final String DAY = "day"; // NOI18N
237    protected static final String DAYS = "days"; // NOI18N
238
239}