////////////////////////////////////////////////////////////////////////////////
//																			  //
// AUTHOR:      Tevfik Metin Sezgin	                        				  //
//				Massachusetts Institute of Technology						  //
//				Department of Electrical Engineering and Computer Science	  //
//				Artificial Intelligence Laboratory							  //
//																			  //
// E-MAIL:		mtsezgin@ai.mit.edu, mtsezgin@mit.edu						  //
//																			  //
// COPYRIGHT:   Tevfik Metin Sezgin                    						  //
//              All rights reserved. This code can not be copied, modified,   //
//              or distributed in whole or partially without the written 	  //
//				permission of the author. Also see the COPYRIGHT file.		  //
//																			  //
////////////////////////////////////////////////////////////////////////////////

/**
  *
  * See the end of the file for the log of changes.
  *
  * $Author: mtsezgin $
  * $Date: 2000/06/09 21:25:42 $
  * $Revision: 1.1 $
  * $Headers$
  * $Id: MechanicalDesignFilenameFilter.java,v 1.1 2000/06/09 21:25:42 mtsezgin Exp $
  * $Name:  $
  * $Locker:  $
  * $Source: /mit/mtsezgin/CVS/Repository/REC/MechanicalDesignFilenameFilter.java,v $
  *
  **/

import java.io.File;
import java.io.FilenameFilter;

/**
  *
  * This class does the filtering of mechanical design files.
  *
  **/

class      MechanicalDesignFilenameFilter
implements FilenameFilter
{
    /**
    *
    * File signature for designs.
    *
    **/
    public static final String MECHANICAL_DESIGN_FILE_SIGNATURE = ".tms";
    
    
    /**
    *
    * File signature for designs.
    *
    **/
    public boolean
    accept( File dir, String name )
    {
        if ( name == null )  // JIC
            return false;
            
        return name.endsWith( MECHANICAL_DESIGN_FILE_SIGNATURE );
    }
}


/** 
  * 
  * $Log: MechanicalDesignFilenameFilter.java,v $
  * Revision 1.1  2000/06/09 21:25:42  mtsezgin
  *
  * Filter for filtering Mechanical design files.
  *
  *
  **/
