Class InstallPear.PEARFilter
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- org.apache.uima.tools.pear.install.InstallPear.PEARFilter
-
- Enclosing class:
- InstallPear
protected static class InstallPear.PEARFilter extends javax.swing.filechooser.FileFilter
ThePEARFilter
class allows to filter directories, as well as '.tear' and '.pear' files.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PEARFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.io.File file)
Returnstrue
, if the given input file is directory or has 'tear' or 'pear' extension,false
otherwise.java.lang.String
getDescription()
Returns the filter description.private java.lang.String
getExtension(java.io.File f)
Returns file name extension in lowercase.
-
-
-
Field Detail
-
TEAR_EXT
static final java.lang.String TEAR_EXT
The Constant TEAR_EXT.- See Also:
- Constant Field Values
-
PEAR_EXT
static final java.lang.String PEAR_EXT
The Constant PEAR_EXT.- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public boolean accept(java.io.File file)
Returnstrue
, if the given input file is directory or has 'tear' or 'pear' extension,false
otherwise.- Specified by:
accept
in classjavax.swing.filechooser.FileFilter
- Parameters:
file
- the file- Returns:
true
, if the given input file is directory or has 'tear' or 'pear' extension,false
otherwise.
-
getExtension
private java.lang.String getExtension(java.io.File f)
Returns file name extension in lowercase.- Parameters:
f
- The given file.- Returns:
- The file name extension in lowercase.
-
getDescription
public java.lang.String getDescription()
Returns the filter description.- Specified by:
getDescription
in classjavax.swing.filechooser.FileFilter
- Returns:
- The filter description.
-
-