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.FileFilterFile filter to accept only xml files (.xml extension)
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringXMLThe Constant XML.
-
Constructor Summary
Constructors Constructor Description XMLFileFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File file)java.lang.StringgetDescription()private java.lang.StringgetExtension(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:
acceptin classjavax.swing.filechooser.FileFilter
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classjavax.swing.filechooser.FileFilter
-
getExtension
private java.lang.String getExtension(java.io.File f)
Gets the extension.- Parameters:
f- the f- Returns:
- the extension
-
-