Package jmri.jmrix.can.cbus.eventtable
Class CbusEventTableXmlFile
java.lang.Object
jmri.jmrit.XmlFile
jmri.jmrix.can.cbus.eventtable.CbusEventTableXmlFile
Class to provide access to the EventTableData.xml file.
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.XmlFile
XmlFile.Validate -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CanSystemConnectionMemoprotected final StringFields inherited from class jmri.jmrit.XmlFile
dtdLocation, xsltLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the full filename, including directory.getFile(boolean store) Get the XML File for this connection.Absolute path to directory of Event Table file.Get the Event Table Filename, no directory.static voidMethods inherited from class jmri.jmrit.XmlFile
addDefaultInfo, backupFileName, checkFile, createFileNameWithDate, dumpElement, findFile, getBuilder, getDefaultDtdLocation, getDefaultValidate, getDtdLocation, getProcessingInstructionHRef, getProcessingInstructionType, getRoot, getValidate, makeBackupFile, makeBackupFile, newDocument, newDocument, revertBackupFile, rootFromFile, rootFromInputStream, rootFromName, rootFromURL, setDefaultDtdLocation, setDefaultValidate, setDtdLocation, setValidate, userFileChooser, userFileChooser, writeXML, xmlDir
-
Field Details
-
memo
-
oldFileLocation
-
-
Constructor Details
-
CbusEventTableXmlFile
-
-
Method Details
-
getDefaultFileName
Get the full filename, including directory.- Returns:
- String of file path.
-
getFileName
Get the Event Table Filename, no directory.- Returns:
- just the filename.
-
getFile
Get the XML File for this connection. Migrates from previous single instance Event Table.- Parameters:
store- true to create new File if File does not exist.- Returns:
- File, or if store is false and File not found, returns null.
-
getFileLocation
Absolute path to directory of Event Table file. No trailing file separator.- Returns:
- path to location
-
migrate
public static void migrate(Path fromPath, String newLocation, String systemPrefix) throws IOException - Throws:
IOException
-