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