de.tuberlin.cs.cis.ocl.util
Class OclFileFilter

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.util.OclFileFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class OclFileFilter
extends java.lang.Object
implements java.io.FilenameFilter

OclFileFilter is a FilenameFilter filtering ocl file with the ending '.ocl' regardless if it's in upper case - or lower case form.

Author:
Fadi Chabarek

Constructor Summary
OclFileFilter()
          Constructs a filter for ocl files.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String fileName)
          Accepts files whose names end with '.ocl' regardless if it's in upper case - or lower case form.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OclFileFilter

public OclFileFilter()
Constructs a filter for ocl files.

Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String fileName)
Accepts files whose names end with '.ocl' regardless if it's in upper case - or lower case form.

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - the directiory to be filtered.
fileName - the name of the file to be accepted or not
Returns:
true if the given fileName ends with '.ocl', else false.