Class VSDFile

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class VSDFile
    extends java.util.zip.ZipFile
    Open a VSD file and validate the configuration part.
    This file is part of JMRI.

    JMRI is free 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  VSDFile.ValidateStatus  
    • Constructor Summary

      Constructors 
      Constructor Description
      VSDFile​(java.io.File file)  
      VSDFile​(java.io.File file, int mode)  
      VSDFile​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getFile​(java.lang.String name)  
      java.io.InputStream getInputStream​(java.lang.String name)  
      org.jdom2.Element getRoot()  
      java.lang.String getStatusMessage()  
      java.lang.String getURL​(java.lang.String name)  
      protected boolean init()  
      boolean isInitialized()  
      VSDFile.ValidateStatus validate​(org.jdom2.Element xmlroot)  
      protected boolean validateFiles​(org.jdom2.Element el, java.lang.String name, java.lang.String[] fnames)  
      protected boolean validateFiles​(org.jdom2.Element el, java.lang.String name, java.lang.String[] fnames, java.lang.Boolean required)  
      protected boolean validateFilesNumbers​(org.jdom2.Element el, java.lang.String name, java.lang.String[] fnames, java.lang.Boolean required)  
      protected boolean validateOptionalFile​(org.jdom2.Element el, java.lang.String name)  
      protected boolean validateOptionalFile​(org.jdom2.Element el, java.lang.String name, java.lang.Boolean required)  
      protected boolean validateRequiredElement​(org.jdom2.Element el, java.lang.String name)  
      protected boolean validateRequiredElementRange​(org.jdom2.Element el, java.lang.String name, int val_from, int val_to)  
      protected boolean validateRequiredNotchElement​(org.jdom2.Element el, java.lang.String name1, java.lang.String name2)  
      • Methods inherited from class java.util.zip.ZipFile

        close, entries, finalize, getComment, getEntry, getInputStream, getName, size, stream
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait