Class XMLFileFilter


  • public class XMLFileFilter
    extends javax.swing.filechooser.FileFilter
    File filter to accept only xml files (.xml extension)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String XML
      The Constant XML.
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLFileFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File file)  
      java.lang.String getDescription()  
      private java.lang.String getExtension​(java.io.File f)
      Gets the extension.
      • Methods inherited from class java.lang.Object

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

      • XMLFileFilter

        public XMLFileFilter()
    • Method Detail

      • accept

        public boolean accept​(java.io.File file)
        Specified by:
        accept in class javax.swing.filechooser.FileFilter
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in class javax.swing.filechooser.FileFilter
      • getExtension

        private java.lang.String getExtension​(java.io.File f)
        Gets the extension.
        Parameters:
        f - the f
        Returns:
        the extension