org.apache.uima.tools.pear.install
Class InstallPear.PEARFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.apache.uima.tools.pear.install.InstallPear.PEARFilter
Enclosing class:
InstallPear

protected static class InstallPear.PEARFilter
extends javax.swing.filechooser.FileFilter

The PEARFilter class allows to filter directories, as well as '.tear' and '.pear' files.


Constructor Summary
protected InstallPear.PEARFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns true, if the given input file is directory or has 'tear' or 'pear' extension, false otherwise.
 java.lang.String getDescription()
          Returns the filter description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallPear.PEARFilter

protected InstallPear.PEARFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Returns true, if the given input file is directory or has 'tear' or 'pear' extension, false otherwise.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Returns:
true, if the given input file is directory or has 'tear' or 'pear' extension, false otherwise.

getDescription

public java.lang.String getDescription()
Returns the filter description.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
The filter description.


Copyright © 2011. All Rights Reserved.