cct.tools.filebrowser
Class FileName

java.lang.Object
  extended by cct.tools.filebrowser.FileName
All Implemented Interfaces:
java.lang.Comparable

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

Title:

Description:

Copyright: Copyright (c) 2006

Company: ANU


Field Summary
static int FILE
           
(package private)  java.lang.String fileName
           
(package private)  int fileType
           
static int FOLDER
           
 
Constructor Summary
FileName(java.lang.String name)
           
FileName(java.lang.String name, int type)
           
 
Method Summary
 int compareTo(java.lang.Object val)
           
 java.lang.String getFileName()
           
 int getFileType()
           
 boolean isDirectory()
           
 boolean isFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE

public static final int FILE
See Also:
Constant Field Values

FOLDER

public static final int FOLDER
See Also:
Constant Field Values

fileName

java.lang.String fileName

fileType

int fileType
Constructor Detail

FileName

public FileName(java.lang.String name)

FileName

public FileName(java.lang.String name,
                int type)
         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getFileType

public int getFileType()

getFileName

public java.lang.String getFileName()

isDirectory

public boolean isDirectory()

isFile

public boolean isFile()

compareTo

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