edu.cs.ai.kreator.misc.util
Class DataFileBijection

java.lang.Object
  extended by edu.cs.ai.kreator.misc.util.Bijection<DataFile,FileTab>
      extended by edu.cs.ai.kreator.misc.util.DataFileBijection

public class DataFileBijection
extends Bijection<DataFile,FileTab>

The DatafileBijiction class provides special methods to realize the demands on handling KReatorFiles. Especially the getImage(File file) method.

Author:
Sebastian Loh

Field Summary
 
Fields inherited from class edu.cs.ai.kreator.misc.util.Bijection
inverse, map
 
Constructor Summary
DataFileBijection()
           
 
Method Summary
 DataFile getImage(java.io.File file)
          Returns the KreatorFile with the path file if the bijection contains it, returns null else.
 
Methods inherited from class edu.cs.ai.kreator.misc.util.Bijection
add, containsImage, containsPreImage, getAllPreImages, getImage, getInverseMap, getMap, getPreImage, removeImage, removePreImage, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFileBijection

public DataFileBijection()
Method Detail

getImage

public DataFile getImage(java.io.File file)
Returns the KreatorFile with the path file if the bijection contains it, returns null else.

Parameters:
file - The path for that been searched.
Returns:
the KreatoFile with the path file if the bijection contains it, return null else.