Package jmri.jmrit.operations.locations
Class LocationManagerXml
java.lang.Object
jmri.jmrit.XmlFile
jmri.jmrit.operations.OperationsXml
jmri.jmrit.operations.locations.LocationManagerXml
- All Implemented Interfaces:
InstanceManagerAutoDefault,InstanceManagerAutoInitialize
public class LocationManagerXml
extends OperationsXml
implements InstanceManagerAutoDefault, InstanceManagerAutoInitialize
Load and stores locations and schedules for operations.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidPerform any initialization that occurs after this object has been constructed and made available by the InstanceManager.voidRead the contents of a roster XML file into this object.voidsetOperationsFileName(String name) voidMethods inherited from class jmri.jmrit.operations.OperationsXml
areFilesDirty, checkFileName, createFile, getDefaultOperationsFilename, getFileLocation, getOperationsDirectoryName, isDirty, load, save, setDirty, setFileLocation, setOperationsDirectoryName, writeFileIfDirty, writeOperationsFileMethods 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 Details
-
LocationManagerXml
public LocationManagerXml()
-
-
Method Details
-
writeFile
- Overrides:
writeFilein classOperationsXml- Throws:
FileNotFoundExceptionIOException
-
readFile
Read the contents of a roster XML file into this object. Note that this does not clear any existing entries.- Specified by:
readFilein classOperationsXml- Parameters:
name- The string file name.- Throws:
org.jdom2.JDOMException- Due to XML parsing errorIOException- Due to trouble accessing named file
-
setOperationsFileName
- Overrides:
setOperationsFileNamein classOperationsXml
-
getOperationsFileName
- Overrides:
getOperationsFileNamein classOperationsXml
-
dispose
-
initialize
Description copied from interface:InstanceManagerAutoInitializePerform any initialization that occurs after this object has been constructed and made available by the InstanceManager.- Specified by:
initializein interfaceInstanceManagerAutoInitialize
-