edu.sdsc.sirius.workbench
Class WBEntry

java.lang.Object
  extended byedu.sdsc.sirius.workbench.WBEntry

public class WBEntry
extends java.lang.Object

This class encapsulates all WB-related information and shadows an entry in the database. This object exists for every item the user has in Workbench, regardless of which ones are loaded.

Author:
Sasha Buzko

Constructor Summary
WBEntry()
           
 
Method Summary
 java.lang.String getFolder()
          Returns label of the folder where this WBEntry is located in the Workbench database
 java.lang.String getFormat()
          Returns a String representation of data format used to store this data item in the Workbench database
 java.lang.String getId()
          Returns Workbench database identificator assigned to this item
 java.lang.String getName()
          Returns user assigned label of the data item corresponding to this WBEntry
 int getType()
          Returns data type of the correspoding item in the Workbench database (structure, view, etc.)
 boolean isLoaded()
          Indicates whether the item corresponding to this WBEntry has actually been loaded in SiriusWB
 void setFolder(java.lang.String folder)
          Sets label of the folder where this item is located
 void setFormat(java.lang.String format)
          Sets format of the data item that corresponds to this WBEntry
 void setId(java.lang.String id)
          Sets id to this WBEntry object
 void setLoaded(boolean loaded)
          Sets the flag upon loading or removal of an Entry from the SiriusWB workspace
 void setName(java.lang.String name)
          Assigns label variable of this WBEntry
 void setType(int type)
          Sets the type of this WBEntry at the time of its creation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WBEntry

public WBEntry()
Method Detail

getId

public final java.lang.String getId()
Returns Workbench database identificator assigned to this item

Returns:

setId

public final void setId(java.lang.String id)
Sets id to this WBEntry object

Parameters:
id -

isLoaded

public final boolean isLoaded()
Indicates whether the item corresponding to this WBEntry has actually been loaded in SiriusWB

Returns:

setLoaded

public final void setLoaded(boolean loaded)
Sets the flag upon loading or removal of an Entry from the SiriusWB workspace

Parameters:
loaded -

getName

public final java.lang.String getName()
Returns user assigned label of the data item corresponding to this WBEntry

Returns:
name

setName

public final void setName(java.lang.String name)
Assigns label variable of this WBEntry

Parameters:
name -

getType

public final int getType()
Returns data type of the correspoding item in the Workbench database (structure, view, etc.)

Returns:

setType

public final void setType(int type)
Sets the type of this WBEntry at the time of its creation

Parameters:
type -

getFolder

public final java.lang.String getFolder()
Returns label of the folder where this WBEntry is located in the Workbench database

Returns:

setFolder

public final void setFolder(java.lang.String folder)
Sets label of the folder where this item is located

Parameters:
folder -

getFormat

public final java.lang.String getFormat()
Returns a String representation of data format used to store this data item in the Workbench database

Returns:

setFormat

public final void setFormat(java.lang.String format)
Sets format of the data item that corresponds to this WBEntry

Parameters:
format -