com.ohrasys.cad.gds.dao
Class Format

java.lang.Object
  extended by com.ohrasys.cad.gds.dao.Format
All Implemented Interfaces:
InfoProvider

public class Format
extends java.lang.Object
implements InfoProvider

A format data access object


Constructor Summary
Format()
          Creates a new Format object.
Format(int type)
          Creates a new Format object.
Format(int type, java.lang.String[] masks)
          Creates a new Format object.
 
Method Summary
 java.lang.String getInfo()
          Returns a textual representation of the database
 java.lang.String[] getMasks()
          Getter for property masks.
 int getType()
          Getter for property type.
 void setMasks(java.lang.String[] masks)
          Setter for property masks.
 void setType(int type)
          Setter for property type.
 java.lang.String toString()
          Returns a string representation of the format object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Format

public Format()
Creates a new Format object.


Format

public Format(int type)
Creates a new Format object.

Parameters:
type - The format of the database

Format

public Format(int type,
              java.lang.String[] masks)
Creates a new Format object.

Parameters:
type - The format of the database
masks - The masks associated with this database
Method Detail

getInfo

public java.lang.String getInfo()
Returns a textual representation of the database

Specified by:
getInfo in interface InfoProvider
Returns:
A textual representation of the database

getMasks

public java.lang.String[] getMasks()
Getter for property masks.

Returns:
Value of property masks.

getType

public int getType()
Getter for property type.

Returns:
Value of property type.

setMasks

public void setMasks(java.lang.String[] masks)
Setter for property masks.

Parameters:
masks - New value of property masks.

setType

public void setType(int type)
Setter for property type.

Parameters:
type - New value of property type.

toString

public java.lang.String toString()
Returns a string representation of the format object

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the format object