|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.XmlFile
jmri.jmrit.dispatcher.TrainInfoFile
public class TrainInfoFile
Handles reading and writing of TrainInfo files to disk as an XML file to/from the dispatcher/traininfo/ directory in the user's preferences area
This class manipulates the files conforming to the dispatcher-traininfo DTD
The file is written when the user requests that train information be saved. A TrainInfo file is read when the user request it in the Activate New Train window
This file is part of JMRI.
JMRI is open source software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrit.XmlFile |
|---|
dtdLocation, xsltLocation |
| Constructor Summary | |
|---|---|
TrainInfoFile()
|
|
| Method Summary | |
|---|---|
void |
deleteTrainInfoFile(String name)
Delete a specified TrainInfo file |
String[] |
getTrainInfoFileNames()
Get the names of all current TrainInfo files Returns names as an array of Strings. |
TrainInfo |
readTrainInfo(String name)
|
void |
setFileLocation(String testLocation)
|
void |
writeTrainInfo(TrainInfo tf,
String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrainInfoFile()
| Method Detail |
|---|
public void setFileLocation(String testLocation)
public TrainInfo readTrainInfo(String name)
throws JDOMException,
IOException
JDOMException
IOException
public void writeTrainInfo(TrainInfo tf,
String name)
throws IOException
IOExceptionpublic String[] getTrainInfoFileNames()
public void deleteTrainInfoFile(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||