Dresden OCL Toolkit

tudresden.ocl.sql
Class SimpleFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bytudresden.ocl.sql.SimpleFileFilter

public class SimpleFileFilter
extends FileFilter

A lightweight implementation of a file filter.

Author:
Sten Loecher

Field Summary
private  String description
           
private  Set extensions
           
 
Constructor Summary
SimpleFileFilter(String description, String[] ext)
          Creates a new SimpleFileFilter.
 
Method Summary
 boolean accept(File file)
           
 String getDescription()
           
 String getExtension(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extensions

private Set extensions

description

private String description
Constructor Detail

SimpleFileFilter

public SimpleFileFilter(String description,
                        String[] ext)
Creates a new SimpleFileFilter.

Method Detail

accept

public boolean accept(File file)

getDescription

public String getDescription()

getExtension

public String getExtension(File file)

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.