Package jmri.util.startup
Class PerformFileModel
- java.lang.Object
-
- jmri.util.startup.AbstractStartupModel
-
- jmri.util.startup.PerformFileModel
-
- All Implemented Interfaces:
StartupModel
public class PerformFileModel extends AbstractStartupModel
A PerformFileModel object loads an xml file when the program is started.- See Also:
PerformFileModelFactory
-
-
Constructor Summary
Constructors Constructor Description PerformFileModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFileName()
void
performAction()
Perform the startup action.void
setFileName(java.lang.String n)
-
Methods inherited from class jmri.util.startup.AbstractStartupModel
addException, getExceptions, getName, isEnabled, isValid, setEnabled, setName, toString
-
-
-
-
Constructor Detail
-
PerformFileModel
public PerformFileModel()
-
-
Method Detail
-
getFileName
public java.lang.String getFileName()
-
setFileName
public void setFileName(java.lang.String n)
-
performAction
public void performAction() throws JmriException
Description copied from interface:StartupModel
Perform the startup action. The caller is responsible to ensure that this startup model is enabled before calling this method.- Throws:
JmriException
- if there is an exception thrown initializing the startup item; the original exception should be available asThrowable.getCause()
-
-