org.cesta.types
Class MappedFile

java.lang.Object
  extended by org.cesta.types.MappedFile

public class MappedFile
extends java.lang.Object

Simple class which holds mapped files. Mapped file has it's from and to File object. It is used to tell transformations on which files they should work and where to write the result.

Author:
Tobias Smolka

Field Summary
protected  java.io.File from
          Input file (read)
protected  java.io.File to
          Output file (write)
 
Constructor Summary
MappedFile()
          Default constructor without parameters
MappedFile(java.io.File from, java.io.File to)
          Default constructor
MappedFile(java.lang.String from, java.lang.String to)
          Overloaded constructor with filenames instead of Files
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.io.File getFrom()
           
 java.io.File getTo()
           
 int hashCode()
           
 void setFrom(java.io.File from)
           
 void setTo(java.io.File to)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

from

protected java.io.File from
Input file (read)


to

protected java.io.File to
Output file (write)

Constructor Detail

MappedFile

public MappedFile()
Default constructor without parameters


MappedFile

public MappedFile(java.lang.String from,
                  java.lang.String to)
Overloaded constructor with filenames instead of Files

Parameters:
from - Input filename
to - Output filename

MappedFile

public MappedFile(java.io.File from,
                  java.io.File to)
Default constructor

Parameters:
from - Input file
to - Output file
Method Detail

getFrom

public java.io.File getFrom()
Returns:
the output file

setFrom

public void setFrom(java.io.File from)
Parameters:
from - the input file

getTo

public java.io.File getTo()
Returns:
the output file

setTo

public void setTo(java.io.File to)
Parameters:
to - output file

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object