jmri.jmrit.operations.rollingstock.cars
Class CarManagerXml

java.lang.Object
  extended by jmri.jmrit.XmlFile
      extended by jmri.jmrit.operations.OperationsXml
          extended by jmri.jmrit.operations.rollingstock.cars.CarManagerXml

public class CarManagerXml
extends OperationsXml

Loads and stores cars using xml files. Also loads and stores car road names, car types, car colors, car lengths, car owners, and car kernels.

Author:
Daniel Boudreau Copyright (C) 2008

Field Summary
 
Fields inherited from class jmri.jmrit.XmlFile
dtdLocation, xsltLocation
 
Constructor Summary
CarManagerXml()
           
 
Method Summary
 String getOperationsFileName()
           
static CarManagerXml instance()
           
 void readFile(String name)
          Read the contents of a roster XML file into this object.
 void setOperationsFileName(String name)
           
 void writeFile(String name)
           
 
Methods inherited from class jmri.jmrit.operations.OperationsXml
convertFromXmlComment, convertToXmlComment, createFile, getDefaultOperationsFilename, getFileLocation, getOperationsDirectoryName, isDirty, load, setDirty, setOperationsDirectoryName, writeFileIfDirty, writeOperationsFile
 
Methods inherited from class jmri.jmrit.XmlFile
addDefaultInfo, backupFileName, checkFile, createFileNameWithDate, dumpElement, ensurePrefsPresent, findFile, getBuilder, getRootViaURI, getVerify, makeBackupFile, makeBackupFile, newDocument, newDocument, prefsDir, reportError1, reportError2, resourcesDir, revertBackupFile, rootFromFile, rootFromName, rootFromURL, scriptsDir, setScriptsFileLocationDefault, setUserFileLocationDefault, setVerify, userFileChooser, userFileChooser, userFileChooser, userFileChooser, userFileLocationDefault, writeXML, xmlDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CarManagerXml

public CarManagerXml()
Method Detail

instance

public static CarManagerXml instance()

writeFile

public void writeFile(String name)
               throws FileNotFoundException,
                      IOException
Overrides:
writeFile in class OperationsXml
Throws:
FileNotFoundException
IOException

readFile

public void readFile(String name)
              throws JDOMException,
                     IOException
Read the contents of a roster XML file into this object. Note that this does not clear any existing entries.

Overrides:
readFile in class OperationsXml
Throws:
JDOMException
IOException

setOperationsFileName

public void setOperationsFileName(String name)
Overrides:
setOperationsFileName in class OperationsXml

getOperationsFileName

public String getOperationsFileName()
Overrides:
getOperationsFileName in class OperationsXml


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads