tp.model
Class LinkToFiles

java.lang.Object
  extended by tp.model.LinkToFiles

public class LinkToFiles
extends java.lang.Object

A class representing links to files, which are chosen by the user for pre-processing.


Nested Class Summary
static class LinkToFiles.FileType
           
 
Constructor Summary
LinkToFiles()
          Constructor of the class
 
Method Summary
 int addFiles(java.io.File[] new_files)
          Method initializes vecotr of files a stores them
 int getCount()
          Gets count of items in the array.
 java.io.File getFileAt(int index)
          Returns a file from array being on a given item index
 java.io.File getFileSingly()
          Method consequently returns items from array of files
 LinkToFiles.FileType getFileType()
          Gets actual value of file type.
 boolean isEmpty()
          Gets information, if the array is empty or not.
 void removeFile(int i)
          Removes a file from array being on a given item index
 void removeFiles(int[] index)
          Removes files from array being on a given item indexes
 void setFileType(LinkToFiles.FileType type)
          Sets used file type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkToFiles

public LinkToFiles()
Constructor of the class

Method Detail

addFiles

public int addFiles(java.io.File[] new_files)
Method initializes vecotr of files a stores them

Parameters:
new_files - array of file to process
Returns:
number of wrongly loaded files

getFileSingly

public java.io.File getFileSingly()
Method consequently returns items from array of files

Returns:
next item, which has not been returned yet

getFileAt

public java.io.File getFileAt(int index)
Returns a file from array being on a given item index

Parameters:
index - index of file
Returns:
chosen file

removeFile

public void removeFile(int i)
Removes a file from array being on a given item index

Parameters:
i - index of file

removeFiles

public void removeFiles(int[] index)
Removes files from array being on a given item indexes

Parameters:
index - array of indexes

setFileType

public void setFileType(LinkToFiles.FileType type)
Sets used file type.

Parameters:
type - file type

getFileType

public LinkToFiles.FileType getFileType()
Gets actual value of file type.

Returns:
file type

getCount

public int getCount()
Gets count of items in the array.

Returns:
count of items

isEmpty

public boolean isEmpty()
Gets information, if the array is empty or not.

Returns:
true, if it is empty, false otherwise