org.argouml.util
Class ClassFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byorg.argouml.util.ClassFileFilter

public class ClassFileFilter
extends FileFilter

A class representing a FileFilter for class files (.class, .jar).


Field Summary
private  String description
           
private  String[] suffixes
           
 
Constructor Summary
ClassFileFilter()
           
 
Method Summary
 boolean accept(File f)
          Check if file passes the filter.
 String getDescription()
          Get a description for this filefilter.
private  String getExtension(String filename)
          Get the extension of a filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

suffixes

private final String[] suffixes

description

private final String description
See Also:
Constant Field Values
Constructor Detail

ClassFileFilter

public ClassFileFilter()
Method Detail

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.


ArgoUML © 1996-2005ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook