project35.util
Class XSDFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
project35.util.XSDFileFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
public class XSDFileFilter
- extends javax.swing.filechooser.FileFilter
- implements java.io.FilenameFilter
This class is used by file choosers to show only *.xsd files (schema files)
It is adapted to support activities in a file chooser and during
IO operations - for some reason Java has two similar interfaces/classes
so for convenience this filter is made to satisfy both.
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net),
code contributions from 2002 - September 30, 2007.
Method Summary |
boolean |
accept(java.io.File file)
|
boolean |
accept(java.io.File directory,
java.lang.String name)
|
java.lang.String |
getDescription()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSDFileFilter
public XSDFileFilter()
accept
public boolean accept(java.io.File file)
- Specified by:
accept
in class javax.swing.filechooser.FileFilter
accept
public boolean accept(java.io.File directory,
java.lang.String name)
- Specified by:
accept
in interface java.io.FilenameFilter
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in class javax.swing.filechooser.FileFilter