ix.util.xml
Class SyntaxFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by ix.util.xml.SyntaxFileFilter

public class SyntaxFileFilter
extends javax.swing.filechooser.FileFilter

A FileFilter for FileSyntaxes. The filter accepts only the file types handled by a specified FileSyntax or else all of the types handled by any of the syntaxes that can deal with objects of a specified class.


Field Summary
protected  java.lang.String description
           
protected  java.util.Collection extensions
           
 
Constructor Summary
SyntaxFileFilter(java.lang.Class objectClass, java.util.Collection extensions)
           
SyntaxFileFilter(FileSyntax syntax)
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected java.lang.String description

extensions

protected java.util.Collection extensions
Constructor Detail

SyntaxFileFilter

public SyntaxFileFilter(java.lang.Class objectClass,
                        java.util.Collection extensions)

SyntaxFileFilter

public SyntaxFileFilter(FileSyntax syntax)
Method Detail

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter

accept

public boolean accept(java.io.File f)
Specified by:
accept in class javax.swing.filechooser.FileFilter