Class ScaleConfigXML


  • public class ScaleConfigXML
    extends java.lang.Object
    Load and store scale xml data files.

    Custom changes to scale information result in the scale data being stored at the user files location. Subsequent scale data loading uses the custom data file. The default scale data file is part of the JMRI distribution.

    Since:
    4.13.6
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean doLoad()
      Load the Scales from file.
      static boolean doStore()
      Store the Scales to file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • doStore

        public static boolean doStore()
        Store the Scales to file.
        Returns:
        true on success, else false.
      • doLoad

        public static boolean doLoad()
        Load the Scales from file. Checks userFilesPath then programPath for resources/scales/ScaleData.xml
        Returns:
        true on success, else false.