Package jmri.jmrit.ctc.configurexml
Class ImportExternalData
- java.lang.Object
-
- jmri.jmrit.ctc.configurexml.ImportExternalData
-
public class ImportExternalData extends java.lang.Object
The external data was created using XMLEncoder. The import process changes the class names in the xml file and then loads the temporary classes using XMLDecoder. The content from the temporary classes is then transferred and converted to the real classes.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.ArrayList<ImportCodeButtonHandlerData>
_mImportCodeButtonHandlerDataArrayList
(package private) static ImportOtherData
_mImportOtherData
(package private) static CtcManager
cm
-
Constructor Summary
Constructors Constructor Description ImportExternalData()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static void
convertCallOnSensorNamesToNBHSensors()
(package private) static TrafficLockingData.TRLSwitch
createTRLSwitch(java.lang.String text, java.lang.String alignment, java.lang.String id)
(package private) static void
doDataLoading()
(package private) static java.util.ArrayList<CallOnData>
getCallOnList(java.lang.String value)
(package private) static java.util.ArrayList<java.lang.String>
getCallOnSensorNames(CallOnEntry entry)
(package private) static java.util.ArrayList<NBHSignal>
getSignalList(java.lang.String value)
(package private) static java.util.ArrayList<TrafficLockingData>
getTrafficLocking(java.lang.String value)
(package private) static java.util.ArrayList<NBHSensor>
getTRLSensorList(TrafficLockingEntry entry, boolean occupancy)
(package private) static java.util.ArrayList<TrafficLockingData.TRLSwitch>
getTRLSwitchList(TrafficLockingEntry entry)
(package private) static NamedBeanHandle<Block>
loadBlock(java.lang.String value)
(package private) static void
loadCodeButtonHandlerData(ImportCodeButtonHandlerData oldCBHD)
static boolean
loadCTCSystemContent()
static void
loadExternalData()
(package private) static int
loadInt(java.lang.String value)
(package private) static void
loadOtherData()
Load the OtherData class.(package private) static NBHSensor
loadSensor(java.lang.String value, boolean isInternal)
(package private) static NBHSignal
loadSignal(java.lang.String signalName)
(package private) static NBHTurnout
loadTurnout(java.lang.String value, boolean feedback)
-
-
-
Field Detail
-
cm
static final CtcManager cm
-
_mImportOtherData
static ImportOtherData _mImportOtherData
-
_mImportCodeButtonHandlerDataArrayList
static java.util.ArrayList<ImportCodeButtonHandlerData> _mImportCodeButtonHandlerDataArrayList
-
-
Constructor Detail
-
ImportExternalData
public ImportExternalData()
-
-
Method Detail
-
loadExternalData
public static void loadExternalData()
-
loadCTCSystemContent
public static boolean loadCTCSystemContent()
-
doDataLoading
static void doDataLoading()
-
loadCodeButtonHandlerData
static void loadCodeButtonHandlerData(ImportCodeButtonHandlerData oldCBHD)
-
loadOtherData
static void loadOtherData()
Load the OtherData class.
-
loadInt
static int loadInt(java.lang.String value)
-
loadSensor
static NBHSensor loadSensor(java.lang.String value, boolean isInternal)
-
loadSignal
static NBHSignal loadSignal(java.lang.String signalName)
-
loadTurnout
static NBHTurnout loadTurnout(java.lang.String value, boolean feedback)
-
loadBlock
static NamedBeanHandle<Block> loadBlock(java.lang.String value)
-
getSignalList
static java.util.ArrayList<NBHSignal> getSignalList(java.lang.String value)
-
getCallOnList
static java.util.ArrayList<CallOnData> getCallOnList(java.lang.String value)
-
getCallOnSensorNames
static java.util.ArrayList<java.lang.String> getCallOnSensorNames(CallOnEntry entry)
-
convertCallOnSensorNamesToNBHSensors
static void convertCallOnSensorNamesToNBHSensors()
-
getTrafficLocking
static java.util.ArrayList<TrafficLockingData> getTrafficLocking(java.lang.String value)
-
getTRLSwitchList
static java.util.ArrayList<TrafficLockingData.TRLSwitch> getTRLSwitchList(TrafficLockingEntry entry)
-
createTRLSwitch
static TrafficLockingData.TRLSwitch createTRLSwitch(java.lang.String text, java.lang.String alignment, java.lang.String id)
-
getTRLSensorList
static java.util.ArrayList<NBHSensor> getTRLSensorList(TrafficLockingEntry entry, boolean occupancy)
-
-