org.argouml.util
Class ClassFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
org.argouml.util.ClassFileFilter
- public class ClassFileFilter
- extends FileFilter
A class representing a FileFilter for class files (.class, .jar).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
suffixes
private final String[] suffixes
description
private final String description
- See Also:
- Constant Field Values
ClassFileFilter
public ClassFileFilter()
accept
public boolean accept(File f)
- Check if file passes the filter.
- Parameters:
f - The file to check.
- Returns:
- true, if the file passes the filter, false otherwise.
getExtension
private String getExtension(String filename)
- Get the extension of a filename.
- Parameters:
filename - The name of the file.
- Returns:
- The extension of the file, or null.
getDescription
public String getDescription()
- Get a description for this filefilter.
- Returns:
- The description of this filefilter.