001package jmri.jmrit.operations.automation;
002
003/**
004 * A convenient place to access operations xml element and attribute names.
005 *
006 * @author Daniel Boudreau Copyright (C) 2016
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    static final String TRUE = "true"; // NOI18N
021    static final String FALSE = "false"; // NOI18N
022    
023    static final String AUTOMATION = "automation"; // NOI18N
024
025    static final String AUTOMATIONS = "automations"; // NOI18N
026    
027    static final String AUTOMATION_OPTIONS = "automationOptions"; // NOI18N
028    static final String AUTOMATION_STARTUP_ID = "automationStartupId"; // NOI18N
029    
030    // Automation.java
031    static final String CURRENT_ITEM = "currentItem"; // NOI18N
032    
033
034    // AutomationItem.java
035    static final String ITEM = "item"; // NOI18N
036    static final String SEQUENCE_ID = "sequenceId"; // NOI18N
037    static final String ACTION_CODE = "actionCode"; // NOI18N
038    static final String TRAIN_ID = "trainId"; // NOI18N
039    static final String ROUTE_LOCATION_ID = "routeLocationId"; // NOI18N
040    static final String AUTOMATION_ID = "automationId"; // NOI18N
041    static final String GOTO_AUTOMATION_ID = "gotoAutomationId"; // NOI18N
042    static final String GOTO_AUTOMATION_BRANCHED = "gotoBranched"; // NOI18N
043    static final String TRAIN_SCHEDULE_ID = "trainScheduleId"; // NOI18N
044    
045    static final String HALT_FAIL = "haltFail"; // NOI18N
046    
047    static final String ACTION_SUCCESSFUL = "actionSuccessful"; // NOI18N
048    static final String ACTION_RAN = "actionRan"; // NOI18N
049    
050    static final String MESSAGES = "messages"; // NOI18N
051    static final String MESSAGE_OK = "messageOk"; // NOI18N
052    static final String MESSAGE_FAIL = "messageFail"; // NOI18N
053    static final String MESSAGE = "message"; // NOI18N
054
055}