org.gersteinlab.tyna.webapp.data
Class NetworkFormat

java.lang.Object
  extended by org.gersteinlab.tyna.webapp.data.NetworkFormat
All Implemented Interfaces:
java.io.Serializable

public class NetworkFormat
extends java.lang.Object
implements java.io.Serializable

        This class contains the information of a network format.
        

Version:
1.0 (October 2, 2005) Change History: 1.0 - Initial version
Author:
Kevin Yuk-Lap Yip
See Also:
Serialized Form

Field Summary
protected  java.lang.String description
          Network format description.
protected  java.lang.Integer id
          Network format ID.
protected  java.lang.String name
          Network format name.
protected  java.lang.String readerClass
          The reader class for reading networks of this format
protected  java.lang.String suffix
          File suffix.
protected  java.lang.String writerClass
          The writer class for writing networks of this format
 
Constructor Summary
NetworkFormat()
          Default constructor: creates an empty object.
NetworkFormat(java.lang.Integer id, java.lang.String name, java.lang.String description, java.lang.String suffix, java.lang.String readerClass, java.lang.String writerClass)
          Creates a new object that stores the supplied information.
 
Method Summary
 java.lang.String getDescription()
          Get the network format description.
 java.lang.Integer getId()
          Get the network format ID.
 java.lang.String getName()
          Get the network format name.
 java.lang.String getReaderClass()
          Get the reader class that reads data of this format.
 java.lang.String getSuffix()
          Get the network format file suffix.
 java.lang.String getWriterClass()
          Get the writer class that reads data of this format.
 void setDescription(java.lang.String description)
          Set the network format description.
 void setId(java.lang.Integer id)
          Set the network format ID.
 void setName(java.lang.String name)
          Set the network format name.
 void setReaderClass(java.lang.String readerClass)
          Set the reader class that reads data of this format.
 void setSuffix(java.lang.String suffix)
          Set the network format file suffix.
 void setWriterClass(java.lang.String writerClass)
          Set the writer class that reads data of this format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.Integer id
Network format ID.


name

protected java.lang.String name
Network format name.


description

protected java.lang.String description
Network format description.


suffix

protected java.lang.String suffix
File suffix.


readerClass

protected java.lang.String readerClass
The reader class for reading networks of this format


writerClass

protected java.lang.String writerClass
The writer class for writing networks of this format

Constructor Detail

NetworkFormat

public NetworkFormat()
Default constructor: creates an empty object.


NetworkFormat

public NetworkFormat(java.lang.Integer id,
                     java.lang.String name,
                     java.lang.String description,
                     java.lang.String suffix,
                     java.lang.String readerClass,
                     java.lang.String writerClass)
Creates a new object that stores the supplied information.

Parameters:
id - Network format ID
name - Network format name
description - Network format description
suffix - File suffix
readerClass - The reader class for reading networks of this format
writerClass - The writer class for writing networks of this format
Method Detail

getId

public java.lang.Integer getId()
Get the network format ID.

Returns:
The network format ID.

setId

public void setId(java.lang.Integer id)
Set the network format ID.

Parameters:
id - The network format ID.

getName

public java.lang.String getName()
Get the network format name.

Returns:
The network format name.

setName

public void setName(java.lang.String name)
Set the network format name.

Parameters:
name - The network format name.

getDescription

public java.lang.String getDescription()
Get the network format description.

Returns:
The network format description.

setDescription

public void setDescription(java.lang.String description)
Set the network format description.

Parameters:
description - The network format description.

getSuffix

public java.lang.String getSuffix()
Get the network format file suffix.

Returns:
The network format file suffix.

setSuffix

public void setSuffix(java.lang.String suffix)
Set the network format file suffix.

Parameters:
suffix - The network format file suffix.

getReaderClass

public java.lang.String getReaderClass()
Get the reader class that reads data of this format.

Returns:
The reader class that reads data of this format

setReaderClass

public void setReaderClass(java.lang.String readerClass)
Set the reader class that reads data of this format.

Parameters:
readerClass - The reader class that reads data of this format

getWriterClass

public java.lang.String getWriterClass()
Get the writer class that reads data of this format.

Returns:
The writer class that reads data of this format

setWriterClass

public void setWriterClass(java.lang.String writerClass)
Set the writer class that reads data of this format.

Parameters:
writerClass - The writer class that reads data of this format