Package weka.gui

Class ExtensionFileFilterWithClass

All Implemented Interfaces:
FilenameFilter, Serializable

public class ExtensionFileFilterWithClass extends ExtensionFileFilter
File filter that stores an associated class alongside name and extension(s).
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • ExtensionFileFilterWithClass

      public ExtensionFileFilterWithClass(String extension, String description, Class filterClass)
      Creates the ExtensionFileFilterWithClass
      Parameters:
      extension - the extension of accepted files.
      description - a text description of accepted files.
      filterClass - the underlying class
    • ExtensionFileFilterWithClass

      public ExtensionFileFilterWithClass(String[] extensions, String description, Class filterClass)
      Creates an ExtensionFileFilterWithClass that accepts files that have any of the extensions contained in the supplied array.
      Parameters:
      extensions - an array of acceptable file extensions (as Strings).
      description - a text description of accepted files.
      filterClass - the underlying class
  • Method Details

    • getFilterClass

      public Class getFilterClass()
      Returns the underlying class.
      Returns:
      the class
    • newInstance

      public Object newInstance()
      Creates a new instance of the underlying class.
      Returns:
      the object