org.eclipse.emf.codegen.jet.editor
Class JETURLClassLoader.SimpleFileFilter

java.lang.Object
  extended by org.eclipse.emf.codegen.jet.editor.JETURLClassLoader.SimpleFileFilter
All Implemented Interfaces:
java.io.FilenameFilter
Enclosing class:
JETURLClassLoader

public static class JETURLClassLoader.SimpleFileFilter
extends java.lang.Object
implements java.io.FilenameFilter


Constructor Summary
JETURLClassLoader.SimpleFileFilter(java.lang.String ext)
           
JETURLClassLoader.SimpleFileFilter(java.lang.String[] exts)
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String _name)
          filenamefilter interface method
static java.lang.String[] fileOrFiles(java.io.File f)
          this method checks to see if an asterisk is embedded in the filename, if it is, it does an "ls" or "dir" of the parent directory returning a list of files that match eg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JETURLClassLoader.SimpleFileFilter

public JETURLClassLoader.SimpleFileFilter(java.lang.String ext)

JETURLClassLoader.SimpleFileFilter

public JETURLClassLoader.SimpleFileFilter(java.lang.String[] exts)
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String _name)
filenamefilter interface method

Specified by:
accept in interface java.io.FilenameFilter

fileOrFiles

public static java.lang.String[] fileOrFiles(java.io.File f)
this method checks to see if an asterisk is embedded in the filename, if it is, it does an "ls" or "dir" of the parent directory returning a list of files that match eg. /usr/home/mjennings/*.jar would expand out to all of the files with a .jar extension in the /usr/home/mjennings directory


Copyright 2006 IBM Corporation and others.
All Rights Reserved.