Package org.apache.uima.tools.util.gui
Class XMLFileFilter
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- org.apache.uima.tools.util.gui.XMLFileFilter
-
public class XMLFileFilter extends javax.swing.filechooser.FileFilter
File filter to accept only xml files (.xml extension)
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
XML
The Constant XML.
-
Constructor Summary
Constructors Constructor Description XMLFileFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.io.File file)
java.lang.String
getDescription()
private java.lang.String
getExtension(java.io.File f)
Gets the extension.
-
-
-
Field Detail
-
XML
private static final java.lang.String XML
The Constant XML.- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public boolean accept(java.io.File file)
- Specified by:
accept
in classjavax.swing.filechooser.FileFilter
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in classjavax.swing.filechooser.FileFilter
-
getExtension
private java.lang.String getExtension(java.io.File f)
Gets the extension.- Parameters:
f
- the f- Returns:
- the extension
-
-