gr.demokritos.iit.jinsect.structs
Class CategorizedFileEntry

java.lang.Object
  extended by gr.demokritos.iit.jinsect.structs.CategorizedFileEntry
All Implemented Interfaces:
java.lang.Comparable

public class CategorizedFileEntry
extends java.lang.Object
implements java.lang.Comparable

An entry object including information about a file and a given category.


Constructor Summary
CategorizedFileEntry(java.lang.String sFilename, java.lang.String sCategory)
          Creates an entry for a file that belongs to a specified category.
 
Method Summary
 int compareTo(java.lang.Object oObj)
           
 java.lang.String getCategory()
          Returns the category of this CategorizedFileEntry.
 java.lang.String getFileName()
          Returns the file name of this CategorizedFileEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategorizedFileEntry

public CategorizedFileEntry(java.lang.String sFilename,
                            java.lang.String sCategory)
Creates an entry for a file that belongs to a specified category.

Parameters:
sFilename - The filename of the file
sCategory - The name of the category, where the file belongs
Method Detail

getCategory

public java.lang.String getCategory()
Returns the category of this CategorizedFileEntry.

Returns:
The string name of the category, where the file belongs.

getFileName

public java.lang.String getFileName()
Returns the file name of this CategorizedFileEntry.

Returns:
The string file name this object is referring to.

compareTo

public int compareTo(java.lang.Object oObj)
Specified by:
compareTo in interface java.lang.Comparable