org.alliance.core.file.filedatabase
Enum FileType

java.lang.Object
  extended by java.lang.Enum<FileType>
      extended by org.alliance.core.file.filedatabase.FileType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FileType>

public enum FileType
extends java.lang.Enum<FileType>

Created by IntelliJ IDEA. User: maciek Date: 2006-mar-02 Time: 19:51:22 To change this template use File | Settings | File Templates.


Enum Constant Summary
ARCHIVE
           
AUDIO
           
CDDVD
           
DOCUMENT
           
EVERYTHING
           
IMAGE
           
PRESENTATION
           
VIDEO
           
 
Method Summary
 java.lang.String description()
           
 FileTypeIdentifier fileTypeIdentifier()
           
static FileType getFileTypeById(int id)
           
 byte id()
           
static int indexOf(FileType ft)
           
 java.lang.String toString()
           
static FileType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FileType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EVERYTHING

public static final FileType EVERYTHING

AUDIO

public static final FileType AUDIO

ARCHIVE

public static final FileType ARCHIVE

CDDVD

public static final FileType CDDVD

DOCUMENT

public static final FileType DOCUMENT

IMAGE

public static final FileType IMAGE

PRESENTATION

public static final FileType PRESENTATION

VIDEO

public static final FileType VIDEO
Method Detail

values

public static final FileType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(FileType c : FileType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static FileType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

id

public byte id()

fileTypeIdentifier

public FileTypeIdentifier fileTypeIdentifier()

description

public java.lang.String description()

indexOf

public static int indexOf(FileType ft)

getFileTypeById

public static FileType getFileTypeById(int id)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<FileType>