Package jmri.jmrit.operations.setup
Class OperationsSetupXml
- java.lang.Object
-
- jmri.jmrit.XmlFile
-
- jmri.jmrit.operations.OperationsXml
-
- jmri.jmrit.operations.setup.OperationsSetupXml
-
- All Implemented Interfaces:
InstanceManagerAutoDefault
,InstanceManagerAutoInitialize
public class OperationsSetupXml extends OperationsXml implements InstanceManagerAutoDefault, InstanceManagerAutoInitialize
Loads and stores the operation setup using xml files.
-
-
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 OperationsSetupXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOperationsFileName()
void
initialize()
Perform any initialization that occurs after this object has been constructed and made available by the InstanceManager.void
readFile(java.lang.String name)
void
setOperationsFileName(java.lang.String name)
void
writeFile(java.lang.String name)
-
Methods inherited from class jmri.jmrit.operations.OperationsXml
areFilesDirty, checkFileName, createFile, getDefaultOperationsFilename, getFileLocation, getOperationsDirectoryName, isDirty, load, save, setDirty, setFileLocation, setOperationsDirectoryName, writeFileIfDirty, writeOperationsFile
-
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
-
OperationsSetupXml
public OperationsSetupXml()
-
-
Method Detail
-
writeFile
public void writeFile(java.lang.String name) throws java.io.FileNotFoundException, java.io.IOException
- Overrides:
writeFile
in classOperationsXml
- Throws:
java.io.FileNotFoundException
java.io.IOException
-
readFile
public void readFile(java.lang.String name) throws org.jdom2.JDOMException, java.io.IOException
- Specified by:
readFile
in classOperationsXml
- Parameters:
name
- The string file name.- Throws:
org.jdom2.JDOMException
- Due to XML parsing errorjava.io.IOException
- Due to trouble accessing named file
-
setOperationsFileName
public void setOperationsFileName(java.lang.String name)
- Overrides:
setOperationsFileName
in classOperationsXml
-
getOperationsFileName
public java.lang.String getOperationsFileName()
- Overrides:
getOperationsFileName
in classOperationsXml
-
initialize
public void initialize()
Description copied from interface:InstanceManagerAutoInitialize
Perform any initialization that occurs after this object has been constructed and made available by the InstanceManager.- Specified by:
initialize
in interfaceInstanceManagerAutoInitialize
-
-