Class ExportTrains
- java.lang.Object
-
- jmri.jmrit.XmlFile
-
- jmri.jmrit.operations.trains.tools.ExportTrains
-
public class ExportTrains extends XmlFile
Exports the train roster into a comma delimited file (CSV). Only trains that have the "Build" checkbox selected are exported. If a train is built, a summary of the train's route and work is provided.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.XmlFile
XmlFile.Validate
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.XmlFile
dtdLocation, xsltLocation
-
-
Constructor Summary
Constructors Constructor Description ExportTrains()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
defaultOperationsFilename()
static java.lang.String
getOperationsFileName()
static void
setOperationsFileName(java.lang.String name)
void
writeFile(java.lang.String name)
void
writeOperationsTrainsFile()
-
Methods 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
-
-
-
-
Constructor Detail
-
ExportTrains
public ExportTrains()
-
-
Method Detail
-
writeOperationsTrainsFile
public void writeOperationsTrainsFile()
-
writeFile
public void writeFile(java.lang.String name)
-
defaultOperationsFilename
public static java.lang.String defaultOperationsFilename()
-
setOperationsFileName
public static void setOperationsFileName(java.lang.String name)
-
getOperationsFileName
public static java.lang.String getOperationsFileName()
-
-