databionics.io
Class FileType

java.lang.Object
  extended by databionics.io.FileType

public class FileType
extends java.lang.Object

Class to describe file types


Field Summary
protected  java.lang.String description
           
protected  java.lang.String ext
           
protected static org.apache.log4j.Logger log
          log4j logging
protected  java.lang.String name
           
 
Constructor Summary
FileType()
           
 
Method Summary
static FileType createFileType(java.lang.String ext)
          Generic filetype
 boolean equals(java.lang.Object o)
          Equals() only depends on the extension.
 java.lang.String getDescription()
          Get the description of file type
 java.lang.String getExt()
          Get the extension of file type
 java.lang.String getFilter()
          Get the extension as a filter for fiel dialogs
 java.lang.String getName()
          Get the name of file type
 void setDescription(java.lang.String newDescription)
          Set the description of file type
 void setExt(java.lang.String newExt)
          Set the extension of file type
 void setName(java.lang.String name)
          Set the name of file type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
log4j logging


name

protected java.lang.String name

ext

protected java.lang.String ext

description

protected java.lang.String description
Constructor Detail

FileType

public FileType()
Method Detail

setName

public void setName(java.lang.String name)
Set the name of file type


getName

public java.lang.String getName()
Get the name of file type


setExt

public void setExt(java.lang.String newExt)
Set the extension of file type


getExt

public java.lang.String getExt()
Get the extension of file type


getFilter

public java.lang.String getFilter()
Get the extension as a filter for fiel dialogs


setDescription

public void setDescription(java.lang.String newDescription)
Set the description of file type


getDescription

public java.lang.String getDescription()
Get the description of file type


equals

public boolean equals(java.lang.Object o)
Equals() only depends on the extension.

Overrides:
equals in class java.lang.Object

createFileType

public static FileType createFileType(java.lang.String ext)
Generic filetype



Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.